|
|
|
@ -38,22 +38,22 @@ jobs:
|
|
|
|
|
|
|
|
|
|
npx asar pack src app.asar
|
|
|
|
|
|
|
|
|
|
- name: Pack minified asar
|
|
|
|
|
run: |
|
|
|
|
|
npm i -g esbuild uglify-js minify-json
|
|
|
|
|
npx esbuild ./src --bundle --platform=node --external:electron --external:original-fs --external:auto-updater --outfile=index.js
|
|
|
|
|
npx uglifyjs --compress --mangle -o index.js -- index.js
|
|
|
|
|
npx uglifyjs --compress --mangle -o preload.js -- src/splash/preload.js
|
|
|
|
|
cp src/package.json .
|
|
|
|
|
cp src/splash/index.html .
|
|
|
|
|
npx minify-json package.json
|
|
|
|
|
rm -rf src
|
|
|
|
|
mkdir src
|
|
|
|
|
cp index.js src
|
|
|
|
|
cp package.json src
|
|
|
|
|
cp index.html src
|
|
|
|
|
cp preload.js src
|
|
|
|
|
npx asar pack src testing.asar
|
|
|
|
|
# - name: Pack minified asar
|
|
|
|
|
# run: |
|
|
|
|
|
# npm i -g esbuild uglify-js minify-json
|
|
|
|
|
# npx esbuild ./src --bundle --platform=node --external:electron --external:original-fs --external:auto-updater --outfile=index.js
|
|
|
|
|
# npx uglifyjs --compress --mangle -o index.js -- index.js
|
|
|
|
|
# npx uglifyjs --compress --mangle -o preload.js -- src/splash/preload.js
|
|
|
|
|
# cp src/package.json .
|
|
|
|
|
# cp src/splash/index.html .
|
|
|
|
|
# npx minify-json package.json
|
|
|
|
|
# rm -rf src
|
|
|
|
|
# mkdir src
|
|
|
|
|
# cp index.js src
|
|
|
|
|
# cp package.json src
|
|
|
|
|
# cp index.html src
|
|
|
|
|
# cp preload.js src
|
|
|
|
|
# npx asar pack src testing.asar
|
|
|
|
|
|
|
|
|
|
- name: GitHub Release
|
|
|
|
|
run: |
|
|
|
|
@ -68,5 +68,5 @@ jobs:
|
|
|
|
|
VERSION: 'nightly'
|
|
|
|
|
NAME: 'Nightly'
|
|
|
|
|
BODY: Latest Nightly release
|
|
|
|
|
FILES: app.asar testing.asar
|
|
|
|
|
# FILES: app.asar
|
|
|
|
|
# FILES: app.asar testing.asar
|
|
|
|
|
FILES: app.asar
|