Skip to content

Add build:bin script to compile a standalone binary - #156

Merged
brianjfox merged 1 commit into
mainfrom
intercode-bin
Jul 21, 2026
Merged

Add build:bin script to compile a standalone binary#156
brianjfox merged 1 commit into
mainfrom
intercode-bin

Conversation

@brianjfox

Copy link
Copy Markdown
Collaborator

What

Adds a build:bin script that compiles Intercode into a single self-contained executable via bun build --compile.

Why

Lets Intercode be distributed and run as one binary (~61 MB) without requiring Bun or node_modules on the target machine.

Changes

  • New build:bin script in package.json producing dist/intercode with --compile --minify and NODE_ENV=production defined (keeps React out of dev mode)
  • Unlike the existing build script, react-devtools-core is bundled rather than external — a compiled binary has no node_modules to resolve externals from at runtime

Verified: bun run build:bin produces dist/intercode, which launches the TUI (smoke-tested; raw-mode error only under piped stdin, as expected).

bun build --compile bundles the runtime and app into a single
self-contained executable at dist/intercode. Production define and
minify keep React out of dev mode; react-devtools-core is bundled
rather than external since compiled binaries cannot resolve packages
at runtime.
@brianjfox
brianjfox merged commit 548242c into main Jul 21, 2026
@TheGreatAxios
TheGreatAxios deleted the intercode-bin branch July 21, 2026 20:13
TheGreatAxios pushed a commit that referenced this pull request Jul 21, 2026
Add build:bin script to compile a standalone binary
TheGreatAxios pushed a commit that referenced this pull request Jul 21, 2026
Add build:bin script to compile a standalone binary
TheGreatAxios pushed a commit that referenced this pull request Jul 21, 2026
Add build:bin script to compile a standalone binary
TheGreatAxios pushed a commit that referenced this pull request Jul 25, 2026
Add build:bin script to compile a standalone binary
TheGreatAxios pushed a commit that referenced this pull request Jul 25, 2026
Add build:bin script to compile a standalone binary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants