✨ Add standalone binary releases with install scripts#80
Merged
renardeinside merged 4 commits intomainfrom Feb 17, 2026
Merged
Conversation
Embed apx-agent into the apx binary via include_bytes! (same pattern as bun), add build-standalone CI job for 5 platforms, and create curl|sh / irm|iex install scripts for direct binary distribution.
cross runs inside Docker and doesn't inherit host PATH/PROTOC. Mount .protoc directory and set PROTOC env via CROSS_CONTAINER_OPTS.
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
apx-agentinto theapxbinary viainclude_bytes!(same pattern as bun), producing a single self-contained binary per platformbuild-standaloneCI job that builds standalone binaries for all 5 platforms (Linux x86_64/aarch64, macOS x86_64/aarch64, Windows x64) and attaches them to GitHub Releases alongside wheelscurl | sh/irm | iexinstall scripts (docs/public/install.shanddocs/public/install.ps1) for direct binary distribution without needinguvbuild.rs— extract sharedcopy_platform_binary()for bun and agent embeddingagent.rs—ensure_installed()now delegates to embedded extraction instead of manual copy logicChanges
crates/core/build.rscopy_agent_binary()via sharedcopy_platform_binary()crates/core/src/resources.rsAGENT_BINARYconst +ensure_agent_extracted()crates/core/src/interop.rscrates/core/src/agent.rsresolve_apx_agent_binary_path().github/workflows/release.ymlbuild-standalonejob, updatecreate-releasedocs/public/install.shdocs/public/install.ps1Test plan
just checkpasses (fmt, clippy, type check)cargo build -p apx-bin --releaseproduces a self-contained binary~/.apx/apx-agentautomaticallybuild-standaloneCI job produces 5 binariescurl -fsSL .../install.sh | sh -s -- --version <tag>🤖 Generated with Claude Code