mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
fi pkgArgs build
This commit is contained in:
parent
a6c6a6663b
commit
0a4c6ed5db
1 changed files with 4 additions and 2 deletions
6
build.js
6
build.js
|
|
@ -119,10 +119,12 @@ function buildSafeChainBinary(target) {
|
|||
? resolve("node_modules/.bin/pkg.cmd")
|
||||
: 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, {
|
||||
stdio: "inherit",
|
||||
shell: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue