Skip to content

Commit

Permalink
set unsaved, create new patch, open directory, save screenshot, minim…
Browse files Browse the repository at this point in the history
…al asset library
  • Loading branch information
steam0r committed Feb 28, 2024
1 parent 19b3ea0 commit e8de44f
Show file tree
Hide file tree
Showing 27 changed files with 10,127 additions and 195 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ name: nightly dev build
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *'
- cron: "0 3 * * *"

env:
releaseName: ${{ github.run_id }}.${{ github.run_number }}
releaseName: nightly-${{ github.run_id }}.${{ github.run_number }}

jobs:
mac:
runs-on: macOS-latest
runs-on: ubuntu-latest
steps:
- name: checkout cables_dev
uses: actions/checkout@v4
Expand All @@ -24,27 +24,23 @@ jobs:
repository: "pandrr/cables"
ref: "develop"
token: ${{ SECRETS.STANDALONE_TOKEN }}
path: 'cables/'
path: "cables/"
- name: checkout cables ui
uses: actions/checkout@v4
with:
repository: "undev-studio/cables_ui"
ref: "develop"
token: ${{ SECRETS.STANDALONE_TOKEN }}
path: 'cables_ui/'
path: "cables_ui/"
- name: checkout cables standalone
uses: actions/checkout@v4
with:
path: 'cables_electron/'
- name: files
run: ls
- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm
path: "cables_electron/"
- name: install nodejs
uses: actions/setup-node@v1
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
cache: "npm"
node-version-file: ".nvmrc"
- name: install dependencies
run: npm install
- name: Create Release
Expand All @@ -53,7 +49,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: osx-${{ env.releaseName }}
tag_name: ${{ env.releaseName }}
release_name: ${{ env.releaseName }}
draft: true
prerelease: true
Expand Down
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ Thumbs.db

#Node modules folder
node_modules
patches/
api/
ui/
dist/
gen/
public/
public/js/
public/libs/
public/libs_core/
ops/
2 changes: 1 addition & 1 deletion cables.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"env": "electron",
"path": {
"ops": "../../cables/src/ops/",
"ops": "../ops/",
"assets": "../public/assets/",
"libs": "../public/libs/",
"corelibs": "../public/libs_core/"
Expand Down
24 changes: 22 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,24 @@ function _api_copy()
return gulp.src("../cables_api/public/libs/**").pipe(gulp.dest("public/libs/"));
}

function _core_copy()
function _corelibs_copy()
{
mkdirp.sync("public/libs_core");
return gulp.src("../cables/build/libs/**").pipe(gulp.dest("public/libs_core/"));
}

function _core_ops_copy()
{
mkdirp.sync("ops/base/");
return gulp.src("../cables/src/ops/base/**").pipe(gulp.dest("ops/base/"));
}

function _extension_ops_copy()
{
mkdirp.sync("ops/extensions/");
return gulp.src("../cables/src/ops/extensions/**").pipe(gulp.dest("ops/extensions/"));
}

function _ui_copy()
{
mkdirp.sync("ui");
Expand Down Expand Up @@ -94,8 +106,16 @@ function _editor_scripts_webpack(done)
gulp.task("build", gulp.series(
gulp.parallel(
_editor_scripts_webpack,
_core_copy,
_corelibs_copy,
_core_ops_copy,
_extension_ops_copy,
_api_copy,
_ui_copy
),
));

gulp.task("build:source", gulp.series(
gulp.parallel(
_editor_scripts_webpack
),
));
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,21 @@
"scripts": {
"start": "electron .",
"build": "gulp build",
"test": "echo \"Error: no test specified\" && exit 1",
"pack": "electron-builder --dir",
"build:source": "gulp build:source",
"pack": "electron-builder --dir --config -c.mac.identity=null",
"dist": "electron-builder -mwl --config -c.mac.identity=null"
},
"build": {
"productName": "cables",
"appId": "gl.cables.standalone",
"files": [
"**/*",
"!gen/",
"!.nvmrc",
"!gulpfile.js",
"!webpack.*.config.js"
],
"directories": {
"buildResources": "resources"
},
"extraResources": [
{
"from": "../cables/src/ops/base/",
Expand Down Expand Up @@ -58,8 +59,10 @@
"dependencies": {
"pako": "2.1.0",
"marked": "1.2.9",
"mkdirp": "2.1.3",
"jsonfile": "6.1.0",
"cables-shared": "file:../shared"
"cables-shared": "file:../shared",
"sanitize-filename": "1.6.3"
},
"devDependencies": {
"electron": "29.0.0",
Expand Down
Loading

0 comments on commit e8de44f

Please sign in to comment.