mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Run pkg from ci step
This commit is contained in:
parent
c70659b7a1
commit
05f1289268
2 changed files with 3 additions and 2 deletions
1
.github/workflows/create-artifact.yml
vendored
1
.github/workflows/create-artifact.yml
vendored
|
|
@ -63,6 +63,7 @@ jobs:
|
|||
- name: Create binary
|
||||
run: |
|
||||
node build.js ${{ matrix.target }}
|
||||
pkg ./build/package.json -t ${{ matrix.target }}
|
||||
|
||||
- name: Upload binary artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
|
|
|
|||
4
build.js
4
build.js
|
|
@ -16,7 +16,7 @@ if (!target) {
|
|||
await bundleSafeChain();
|
||||
await copyShellScripts();
|
||||
await copyAndModifyPackageJson();
|
||||
await buildSafeChainBinary(target);
|
||||
// await buildSafeChainBinary(target);
|
||||
})();
|
||||
|
||||
async function clearOutputFolder() {
|
||||
|
|
@ -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", "--targets", target], {
|
||||
const pkg = spawn("pkg", ["./build/package.json", "-t", target], {
|
||||
stdio: "inherit",
|
||||
shell: true,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue