[CI] Add preload and splash to minified builds

This commit is contained in:
Ducko 2021-12-16 13:06:10 +00:00
parent 508876294b
commit 54d93733c8

View file

@ -44,11 +44,15 @@ jobs:
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 .
cp src/splash/index.html .
cp src/splash/preload.js .
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