From c70659b7a1bfa580f1851cc8f1f99264d705c55b Mon Sep 17 00:00:00 2001 From: Sander Declerck Date: Fri, 28 Nov 2025 11:06:43 +0100 Subject: [PATCH] Use correct pkg arg --- .github/workflows/create-artifact.yml | 2 +- build.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-artifact.yml b/.github/workflows/create-artifact.yml index dd279ae..938994a 100644 --- a/.github/workflows/create-artifact.yml +++ b/.github/workflows/create-artifact.yml @@ -50,7 +50,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: "lts/*" + node-version: "22.x" - name: Setup safe-chain run: | diff --git a/build.js b/build.js index 3e813ef..3d3a9e6 100644 --- a/build.js +++ b/build.js @@ -73,7 +73,7 @@ function buildSafeChainBinary(target) { // eslint-disable-next-line no-console console.error("Target: " + target); return new Promise((resolve, reject) => { - const pkg = spawn("pkg", ["./build/package.json", `--target=${target}`], { + const pkg = spawn("pkg", ["./build/package.json", "--targets", target], { stdio: "inherit", shell: true, });