[CI] Minify splash preload
This commit is contained in:
parent
54d93733c8
commit
efbc8bb828
1 changed files with 1 additions and 1 deletions
2
.github/workflows/release_nightly.yml
vendored
2
.github/workflows/release_nightly.yml
vendored
|
@ -43,9 +43,9 @@ jobs:
|
||||||
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
|
||||||
|
npx uglifyjs --compress --mangle -o preload.js -- src/splash/preload.js
|
||||||
cp src/package.json .
|
cp src/package.json .
|
||||||
cp src/splash/index.html .
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue