[CI] Disable minified builds for now
This commit is contained in:
parent
5bdebf4b77
commit
b03a357a74
1 changed files with 13 additions and 12 deletions
25
.github/workflows/release_nightly.yml
vendored
25
.github/workflows/release_nightly.yml
vendored
|
@ -32,17 +32,17 @@ jobs:
|
||||||
rm -rf src/package-lock.json src/node_modules/.package-lock.json src/splash/splashScreen.js.self src/node_modules/**/package.json src/node_modules/**/*.md src/node_modules/**/.*.yml src/node_modules/**/.npmignore src/node_modules/**/LICENSE src/node_modules/**/test*
|
rm -rf src/package-lock.json src/node_modules/.package-lock.json src/splash/splashScreen.js.self src/node_modules/**/package.json src/node_modules/**/*.md src/node_modules/**/.*.yml src/node_modules/**/.npmignore src/node_modules/**/LICENSE src/node_modules/**/test*
|
||||||
npx asar pack src app.asar
|
npx asar pack src app.asar
|
||||||
|
|
||||||
- name: Pack minified asar
|
# - name: Pack minified asar
|
||||||
run: |
|
# run: |
|
||||||
npm i -g esbuild uglify-js minify-json
|
# 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 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 index.js -- index.js
|
||||||
cp src/package.json .
|
# cp src/package.json .
|
||||||
npx minify-json package.json
|
# npx minify-json package.json
|
||||||
rm -rf src/*
|
# rm -rf src/*
|
||||||
cp index.js src
|
# cp index.js src
|
||||||
cp package.json src
|
# cp package.json src
|
||||||
npx asar pack src minified.asar
|
# npx asar pack src minified.asar
|
||||||
|
|
||||||
- name: GitHub Release
|
- name: GitHub Release
|
||||||
run: |
|
run: |
|
||||||
|
@ -52,4 +52,5 @@ jobs:
|
||||||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
VERSION: 'nightly'
|
VERSION: 'nightly'
|
||||||
NAME: 'Nightly'
|
NAME: 'Nightly'
|
||||||
FILES: app.asar minified.asar
|
FILES: app.asar
|
||||||
|
# FILES: app.asar minified.asar
|
Loading…
Reference in a new issue