diff --git a/desktop/build-deb.sh b/desktop/build-deb.sh index c774edb..4a101ef 100755 --- a/desktop/build-deb.sh +++ b/desktop/build-deb.sh @@ -38,7 +38,8 @@ EOF # Bundle server TypeScript + Fastify + @pubscript/core into a single ESM file, # keeping only native addons (better-sqlite3, argon2) external. -./apps/web/node_modules/.bin/esbuild server/src/index.ts \ +ESBUILD_BIN="$(find "$ROOT_DIR/node_modules/.pnpm" -path '*/esbuild/bin/esbuild' -type f | head -n 1)" +"$ESBUILD_BIN" server/src/index.ts \ --bundle \ --platform=node \ --target=node22 \