feat: add script to build and run compiled binary locally#262
Merged
anandgupta42 merged 3 commits intomainfrom Mar 18, 2026
Merged
feat: add script to build and run compiled binary locally#262anandgupta42 merged 3 commits intomainfrom
anandgupta42 merged 3 commits intomainfrom
Conversation
Running the compiled binary locally was painful — required manually setting `NODE_PATH` and finding the right platform binary in `dist/`. Adds: - `script/local.sh` — builds single-platform binary and runs it with correct `NODE_PATH` for `@altimateai/altimate-core` resolution - `build:local` and `local` package.json scripts for convenience Usage: ./script/local.sh # build + run ./script/local.sh --skip-build # run without rebuilding ./script/local.sh -- --help # pass flags to altimate-code Closes #260
Replace outdated "Building a localcode" section (referenced old `opencode` naming and manual binary path) with the new `local.sh` workflow including `--skip-build` and package.json script shortcuts.
Under Rosetta 2, `uname -m` reports `x86_64` but `bun` builds a native `arm64` binary. Check `sysctl.proc_translated` on macOS to override arch when running under translation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds
script/local.sh— a convenience script to build a single-platform compiled binary and run it locally with the correctNODE_PATHfor@altimateai/altimate-coreresolution.Running the compiled binary locally was painful — required manually setting
NODE_PATHand finding the right platform binary indist/.Usage:
Type of change
Issue for this PR
Closes #260
How did you verify your code works?
./script/local.shon macOS ARM64dist/NODE_PATHallows@altimateai/altimate-coreto loadChecklist