mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Handle PR comments
This commit is contained in:
parent
31a14a3f1b
commit
4139275b76
7 changed files with 204 additions and 195 deletions
11
build.js
11
build.js
|
|
@ -11,12 +11,21 @@ if (!target) {
|
|||
process.exit(1);
|
||||
}
|
||||
|
||||
(async function () {
|
||||
(async function main() {
|
||||
await clearOutputFolder();
|
||||
|
||||
// Esbuild creates a single safe-chain.cjs with all dependencies included
|
||||
await bundleSafeChain();
|
||||
|
||||
// Copy assets that need to be included in the binary
|
||||
// - All shell scripts that are used to setup safe-chain
|
||||
// - Certifi because it contains static root certs for Python
|
||||
// - Package.json for its metadata (package name, version, ...)
|
||||
await copyShellScripts();
|
||||
await copyCertifi();
|
||||
await copyAndModifyPackageJson();
|
||||
|
||||
// Creates a single binary with safe-chain.cjs and the copied assets
|
||||
await buildSafeChainBinary(target);
|
||||
})();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue