Browse Source

chore: skip dir creation if already exist

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/9245/head
Pranav C 3 months ago
parent
commit
e725173e3e
  1. 13
      .github/workflows/release-timely-executables.yml

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

@ -97,9 +97,11 @@ jobs:
./node_modules/.bin/node-pre-gyp install --directory=./node_modules/sqlite3 --target_platform=linux --fallback-to-build --target_arch=x64 --target_libc=musl
./node_modules/.bin/node-pre-gyp install --directory=./node_modules/sqlite3 --target_platform=linux --fallback-to-build --target_arch=arm64 --target_libc=musl
# clean up code to optimize size
npx modclean --patterns="default:*" --ignore="nc-lib-gui-daily/**,nocodb-daily/**,dayjs/**,express-status-monitor/**,sqlite3/**" --run
mkdir ./mac-dist
mkdir ./dist
mkdir -p ./mac-dist
mkdir -p ./dist
# build darwin x64 executable
npm uninstall sharp
@ -139,13 +141,6 @@ jobs:
npx --yes pkg@5.8.1 . --compress GZip -t node18-win-arm64 -o Noco-win-arm64.exe
mv ./Noco-win-arm64.exe ./dist/
# clean up code to optimize size
npx modclean --patterns="default:*" --ignore="nc-lib-gui-daily/**,nocodb-daily/**,dayjs/**,express-status-monitor/**,sqlite3/**" --run
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
uses: svenstaro/upload-release-action@v2
with:

Loading…
Cancel
Save