From aba771e35594f8be170505fef2c1193804ab0bf9 Mon Sep 17 00:00:00 2001 From: bitterpanda Date: Wed, 3 Dec 2025 14:14:55 +0100 Subject: [PATCH] add --compress GZip option to build --- build.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.js b/build.js index 4711ce6..870d9f8 100644 --- a/build.js +++ b/build.js @@ -109,7 +109,11 @@ function buildSafeChainBinary(target) { ? resolve("node_modules/.bin/pkg.cmd") : 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", shell: true, });