Browse Source

chore: after building executable move to dist folder

Signed-off-by: Pranav C <pranavxc@gmail.com>
feat/better-sqlite3
Pranav C 2 years ago committed by mertmit
parent
commit
bd2b4ddb10
  1. 11
      .github/workflows/release-timely-executables.yml

11
.github/workflows/release-timely-executables.yml

@ -105,23 +105,26 @@ jobs:
# clean up code to optimize size # clean up code to optimize size
npx modclean --patterns="default:*" --ignore="nc-lib-gui-daily/**,dayjs/**,express-status-monitor/**,sqlite3/**" --run npx modclean --patterns="default:*" --ignore="nc-lib-gui-daily/**,dayjs/**,express-status-monitor/**,sqlite3/**" --run
mkdir ./dist
mkdir ./mac-dist
# build executables # build executables
# npm run build # npm run build
npm i --target_arch=arm64 --target_platform=darwin better-sqlite3 npm i --target_arch=arm64 --target_platform=darwin better-sqlite3
npx pkg . --compress GZip -t node16-macos-arm64 -o Noco-macos-arm64 npx pkg . --compress GZip -t node16-macos-arm64 -o Noco-macos-arm64
mv ./Noco-macos-arm64 ./mac-dist/
npm i --target_arch=x64 --target_platform=darwin better-sqlite3 npm i --target_arch=x64 --target_platform=darwin better-sqlite3
npx pkg . --compress GZip -t node16-macos-x64 -o Noco-macos-x64 npx pkg . --compress GZip -t node16-macos-x64 -o Noco-macos-x64
mv ./Noco-macos-x64 ./mac-dist/
npm i --target_arch=x64 --target_platform=linux better-sqlite3 npm i --target_arch=x64 --target_platform=linux better-sqlite3
npx pkg . --compress GZip -t node16-linux-x64 -o Noco-linux-x64 npx pkg . --compress GZip -t node16-linux-x64 -o Noco-linux-x64
mv ./Noco-linux-x64 ./dist/
npm i --target_arch=arm64 --target_platform=linux better-sqlite3 npm i --target_arch=arm64 --target_platform=linux better-sqlite3
npx pkg . --compress GZip -t node16-linux-arm64 -o Noco-linux-arm64 npx pkg . --compress GZip -t node16-linux-arm64 -o Noco-linux-arm64
mv ./Noco-linux-arm64 ./dist/
mkdir ./mac-dist
mv ./dist/Noco-macos-arm64 ./mac-dist/
mv ./dist/Noco-macos-x64 ./mac-dist/
- name: Upload executables(except mac executables) to release - name: Upload executables(except mac executables) to release
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2

Loading…
Cancel
Save