Try to fix the build

This commit is contained in:
Sander Declerck 2025-11-28 10:55:29 +01:00
parent 9c149f3bb3
commit a013141118
No known key found for this signature in database
2 changed files with 4 additions and 8 deletions

View file

@ -53,7 +53,7 @@ jobs:
- name: Setup safe-chain - name: Setup safe-chain
run: | run: |
npm i -g @aikidosec/safe-chain npm i -g @aikidosec/safe-chain pkg
safe-chain setup-ci safe-chain setup-ci
- name: Install dependencies - name: Install dependencies

View file

@ -71,13 +71,9 @@ async function copyAndModifyPackageJson() {
function buildSafeChainBinary(target) { function buildSafeChainBinary(target) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const pkg = spawn( const pkg = spawn("pkg", ["./build/package.json", `--target=${target}`], {
"npx", stdio: "inherit",
["pkg", "./build/package.json", `--target=${target}`], });
{
stdio: "inherit",
}
);
pkg.on("close", (code) => { pkg.on("close", (code) => {
if (code !== 0) { if (code !== 0) {