add --compress GZip option to build

This commit is contained in:
bitterpanda 2025-12-03 14:14:55 +01:00
parent 9518be35b4
commit aba771e355

View file

@ -109,7 +109,11 @@ 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");
const pkg = spawn(pkgBin, ["./build/package.json", "-t", target], { let pkgArgs = ["./build/package.json", "-t", "target"];
pkgArgs += ["--compress", "GZip"];
const pkg = spawn(pkgBin, pkgArgs, {
stdio: "inherit", stdio: "inherit",
shell: true, shell: true,
}); });