[CI] Make minified builds default
This commit is contained in:
parent
d09ce4a3d2
commit
180990d54d
1 changed files with 13 additions and 14 deletions
27
.github/workflows/release_nightly.yml
vendored
27
.github/workflows/release_nightly.yml
vendored
|
@ -36,19 +36,19 @@ jobs:
|
|||
node scripts/injectPolyfills.js
|
||||
sed -i -e "s/nightly/nightly-$(git rev-parse HEAD | cut -c 1-7)/" src/index.js
|
||||
|
||||
npx asar pack src app.asar
|
||||
npx asar pack src debug.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
|
||||
# cp src/package.json .
|
||||
# npx minify-json package.json
|
||||
# rm -rf src/*
|
||||
# cp index.js src
|
||||
# cp package.json src
|
||||
# npx asar pack src minified.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
|
||||
cp src/package.json .
|
||||
npx minify-json package.json
|
||||
rm -rf src/*
|
||||
cp index.js src
|
||||
cp package.json src
|
||||
npx asar pack src app.asar
|
||||
|
||||
- name: GitHub Release
|
||||
run: |
|
||||
|
@ -58,6 +58,5 @@ jobs:
|
|||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
||||
VERSION: 'nightly'
|
||||
NAME: 'Nightly'
|
||||
FILES: app.asar
|
||||
BODY: Latest Nightly release
|
||||
# FILES: app.asar minified.asar
|
||||
FILES: app.asar debug.asar
|
Loading…
Reference in a new issue