diff --git a/build.sh b/build.sh deleted file mode 100644 index c1007e9..0000000 --- a/build.sh +++ /dev/null @@ -1,8 +0,0 @@ -node --experimental-sea-config sea-config.json -cp $(command -v node) build/amdhelper -codesign --remove-signature build/amdhelper -chmod 755 build/amdhelper -bunx postject build/amdhelper NODE_SEA_BLOB build/sea-prep.blob \ - --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 \ - --macho-segment-name NODE_SEA -codesign --sign - build/amdhelper \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index 9ed6ffd..037ae12 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index fde709f..b0d0d91 100644 --- a/package.json +++ b/package.json @@ -5,13 +5,15 @@ "scripts": { "clean": "rimraf build", "dev": "bun run index.ts", - "compile": "webpack", - "build": "bun run clean && bun run compile && bash build.sh" + "bundle": "webpack", + "compile": "nexe build/bundle.js -o build/amdhelper --remote https://github.com/alvindimas05/nexe-assets/releases/download/v0.0.1", + "build": "bun run clean && bun run bundle && bun run compile" }, "devDependencies": { "@types/bun": "latest", "@types/node": "^20.14.11", "@types/yargs": "^17.0.32", + "nexe": "^4.0.0-rc.6", "rimraf": "^6.0.1", "ts-loader": "^9.5.1", "webpack": "^5.93.0", diff --git a/sea-config.json b/sea-config.json deleted file mode 100644 index 501ed17..0000000 --- a/sea-config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "main": "build/bundle.js", - "output": "build/sea-prep.blob", - "disableExperimentalSEAWarning": true -} \ No newline at end of file