fi pkgArgs build

This commit is contained in:
bitterpanda 2025-12-03 16:10:44 +01:00
parent a6c6a6663b
commit 0a4c6ed5db

View file

@ -119,10 +119,12 @@ function buildSafeChainBinary(target) {
? resolve("node_modules/.bin/pkg.cmd") ? resolve("node_modules/.bin/pkg.cmd")
: resolve("node_modules/.bin/pkg"); : resolve("node_modules/.bin/pkg");
let pkgArgs = ["./build/package.json", "-t", "target"]; let pkgArgs = [];
pkgArgs += ["--compress", "GZip"]; // using gzip compression to lower binary size (original is 50MB)
pkgArgs = pkgArgs.concat(["--compress", "GZip"]);
pkgArgs = pkgArgs.concat(["./build/package.json", "-t", target]);
const pkg = spawn(pkgBin, pkgArgs, { const pkg = spawn(pkgBin, pkgArgs, {
stdio: "inherit", stdio: "inherit",
shell: true, shell: true,