Skip to content

Commit ee90333

Browse files
committed
Fix pkg installation in workflow
1 parent 9869250 commit ee90333

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ jobs:
5959
pnpm install --frozen-lockfile=false
6060
npx esbuild src/index.ts --bundle --platform=node --outfile=dist/index.cjs --format=cjs --packages=external
6161
cd ..
62-
npx [email protected] ./bridge/dist/index.cjs --target node18-win-x64 --output ./src-tauri/resources/bridge-x86_64-pc-windows-msvc.exe
62+
npm install -g [email protected]
63+
pkg ./bridge/dist/index.cjs --target node18-win-x64 --output ./src-tauri/resources/bridge-x86_64-pc-windows-msvc.exe
6364
6465
- name: Build bridge (Linux)
6566
if: matrix.platform == 'ubuntu-22.04'
@@ -68,7 +69,8 @@ jobs:
6869
pnpm install --frozen-lockfile=false
6970
npx esbuild src/index.ts --bundle --platform=node --outfile=dist/index.cjs --format=cjs --packages=external
7071
cd ..
71-
npx [email protected] ./bridge/dist/index.cjs --target node18-linux-x64 --output ./src-tauri/resources/bridge-x86_64-unknown-linux-gnu
72+
npm install -g [email protected]
73+
pkg ./bridge/dist/index.cjs --target node18-linux-x64 --output ./src-tauri/resources/bridge-x86_64-unknown-linux-gnu
7274
7375
- name: Build and release
7476
uses: tauri-apps/tauri-action@v0

0 commit comments

Comments
 (0)