[CI] Add preload and splash to minified builds
This commit is contained in:
parent
508876294b
commit
54d93733c8
1 changed files with 4 additions and 0 deletions
4
.github/workflows/release_nightly.yml
vendored
4
.github/workflows/release_nightly.yml
vendored
|
@ -44,11 +44,15 @@ jobs:
|
||||||
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 .
|
||||||
|
cp src/splash/index.html .
|
||||||
|
cp src/splash/preload.js .
|
||||||
npx minify-json package.json
|
npx minify-json package.json
|
||||||
rm -rf src
|
rm -rf src
|
||||||
mkdir src
|
mkdir src
|
||||||
cp index.js src
|
cp index.js src
|
||||||
cp package.json src
|
cp package.json src
|
||||||
|
cp index.html src
|
||||||
|
cp preload.js src
|
||||||
npx asar pack src testing.asar
|
npx asar pack src testing.asar
|
||||||
|
|
||||||
- name: GitHub Release
|
- name: GitHub Release
|
||||||
|
|
Loading…
Reference in a new issue