Skip to content

Commit

Permalink
Build into single executable
Browse files Browse the repository at this point in the history
  • Loading branch information
alvindimas05 committed Jul 22, 2024
1 parent f85cd12 commit ad9c8b3
Show file tree
Hide file tree
Showing 13 changed files with 2,433 additions and 133 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,4 @@ dist
.idea

# Finder (MacOS) folder config
.DS_Store
.DS_Store
8 changes: 8 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env node
import { promisify } from "util";
import child_process from "child_process";
import CommandLine from "./src/commandline.ts";
import {isRoot} from "./src/utils.ts";
import CommandLine from "./src/commandline";
import {isRoot} from "./src/utils";

const exec = promisify(child_process.exec);

Expand Down
Loading

0 comments on commit ad9c8b3

Please sign in to comment.