Run pkg from ci step

This commit is contained in:
Sander Declerck 2025-11-28 11:14:14 +01:00
parent c70659b7a1
commit 05f1289268
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -63,6 +63,7 @@ jobs:
- name: Create binary - name: Create binary
run: | run: |
node build.js ${{ matrix.target }} node build.js ${{ matrix.target }}
pkg ./build/package.json -t ${{ matrix.target }}
- name: Upload binary artifact - name: Upload binary artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4

View file

@ -16,7 +16,7 @@ if (!target) {
await bundleSafeChain(); await bundleSafeChain();
await copyShellScripts(); await copyShellScripts();
await copyAndModifyPackageJson(); await copyAndModifyPackageJson();
await buildSafeChainBinary(target); // await buildSafeChainBinary(target);
})(); })();
async function clearOutputFolder() { async function clearOutputFolder() {
@ -73,7 +73,7 @@ function buildSafeChainBinary(target) {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.error("Target: " + target); console.error("Target: " + target);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const pkg = spawn("pkg", ["./build/package.json", "--targets", target], { const pkg = spawn("pkg", ["./build/package.json", "-t", target], {
stdio: "inherit", stdio: "inherit",
shell: true, shell: true,
}); });