Repository navigation
feat(install): add standalone binary install and detect the real upgrade owner - #44
Merged
Merged
Conversation
…ade owner Add install.sh, which downloads a Bun-compiled bstack binary from the latest GitHub release, and build those binaries in the release workflow. Binary installs upgrade by rerunning the installer into their own directory. Package installs now upgrade through the package manager whose global directory holds the running script, instead of the first one that lists bstack, so an extra install elsewhere can't take the upgrade. Rework the README install section. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
Summary
install.shdownloadsbstack-<os>-<arch>(macOS/Linux, arm64/x64) from the latest GitHub release into~/.local/bin(orBSTACK_INSTALL_DIR). It downloads to a temp file and renames it over the target, so it can replace a running bstack.binariesjob builds the four targets withbun build --compileafter release-please creates a release and uploads them to the release. It runs onmacos-latestso the darwin binaries get signed.npm root -g,pnpm root -g,bun pm bin -g,yarn global dir) holds the running script. Before, the first manager whose global list included bstack won, so with more than one global install the wrong copy could be upgraded and the command still reported success.bstack update/bstack upgradein a compiled binary reruns the installer into the binary's own directory.curl | shplus npm/pnpm/bun with--ignore-scripts) and a tighter usage section.Notes
Test plan
install.shand binary self-upgrade tested locally with a stubbedcurlcurl -fsSL .../install.sh | shinstalls a working binary🤖 Generated with Claude Code