From 1ff810a724d53572edb28eb7177d4b185e0eb80b Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 13 Jan 2026 22:49:50 +0530 Subject: [PATCH] chore: executable build action Signed-off-by: Pranav C --- .github/workflows/release-executables.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-executables.yml b/.github/workflows/release-executables.yml index e6042cb7c2..17edda01af 100644 --- a/.github/workflows/release-executables.yml +++ b/.github/workflows/release-executables.yml @@ -64,7 +64,7 @@ jobs: - uses: actions/setup-node@v3 with: # pkg library doesn't have node 22 support - node-version: 18.19.1 + node-version: 22.12.0 - name : Install nocodb, other dependencies and build executables run: | @@ -96,43 +96,45 @@ jobs: mkdir ./mac-dist mkdir ./dist + + npm install -g @yao-pkg/pkg # build darwin x64 executable npm uninstall sharp npm install --cpu=x64 --os=darwin sharp - npx --yes pkg@5.8.1 . --compress GZip -t node18-macos-x64 -o Noco-macos-x64 + pkg . --compress GZip -t node22-macos-x64 -o Noco-macos-x64 mv ./Noco-macos-x64 ./mac-dist/ # build darwin arm64 executable npm uninstall sharp npm install --cpu=arm64 --os=darwin sharp - npx --yes pkg@5.8.1 . --compress GZip -t node18-macos-arm64 -o Noco-macos-arm64 + pkg . --compress GZip -t node22-macos-arm64 -o Noco-macos-arm64 mv ./Noco-macos-arm64 ./mac-dist/ # build linux x64 executable npm uninstall sharp npm install --cpu=x64 --os=linux sharp - npx --yes pkg@5.8.1 . --compress GZip -t node18-linux-x64 -o Noco-linux-x64 + pkg . --compress GZip -t node22-linux-x64 -o Noco-linux-x64 mv ./Noco-linux-x64 ./dist/ # build linux arm64 executable npm uninstall sharp npm install --cpu=arm64 --os=linux sharp - npx --yes pkg@5.8.1 . --compress GZip -t node18-linux-arm64 -o Noco-linux-arm64 + pkg . --compress GZip -t node22-linux-arm64 -o Noco-linux-arm64 mv ./Noco-linux-arm64 ./dist/ # build windows x64 executable npm uninstall sharp npm install --cpu=x64 --os=win32 sharp - npx --yes pkg@5.8.1 . --compress GZip -t node18-win-x64 -o Noco-win-x64.exe + pkg . --compress GZip -t node22-win-x64 -o Noco-win-x64.exe mv ./Noco-win-x64.exe ./dist/ # build windows arm64 executable npm uninstall sharp npm install --cpu=arm64 --os=win32 sharp - npx --yes pkg@5.8.1 . --compress GZip -t node18-win-arm64 -o Noco-win-arm64.exe + pkg . --compress GZip -t node22-win-arm64 -o Noco-win-arm64.exe mv ./Noco-win-arm64.exe ./dist/ - name: Upload executables to asset