This folder is structured as if it were a public GitHub repository used only for:
- Publishing pre-built
cxpbinaries as GitHub Release assets - Providing a simple
install.shfor users to installcxpviacurl | sh
Your actual Rust source code stays in a separate private repo.
install.sh– installer script users run locally- GitHub Releases – contain the compiled
cxpbinaries andchecksums.txt
No Rust source code is required here.
Assuming you push this folder as a repo named syv-labs/cxp, users can install with:
curl -fsSL https://raw.githubusercontent.com/syv-labs/cxp/main/install.sh | shor clone and run:
git clone https://github.com/syv-labs/cxp.git
cd cxp
sh install.shThe script will:
- Detect OS and architecture
- Download the correct
cxp-<version>-<target>.tar.gzfrom the repo's Releases - Verify the checksum (if
checksums.txtis present) - Install the
cxpbinary to~/.local/binby default
For a version v0.1.0, the public repo’s GitHub Release should contain assets like:
cxp-v0.1.0-x86_64-apple-darwin.tar.gzcxp-v0.1.0-aarch64-apple-darwin.tar.gzcxp-v0.1.0-x86_64-unknown-linux-musl.tar.gzcxp-v0.1.0-aarch64-unknown-linux-musl.tar.gzchecksums.txt
Each .tar.gz must contain a single executable named cxp (no subdirectories).
From your private cxp repo:
- Build release binaries (example for macOS on Apple Silicon and Linux x86_64):
cargo build --release --target aarch64-apple-darwin
cargo build --release --target x86_64-unknown-linux-musl- Package them into tarballs named as expected:
mkdir -p dist
version="0.1.0"
cp target/aarch64-apple-darwin/release/cxp dist/cxp
tar -C dist -czf "cxp-v${version}-aarch64-apple-darwin.tar.gz" cxp
cp target/x86_64-unknown-linux-musl/release/cxp dist/cxp
tar -C dist -czf "cxp-v${version}-x86_64-unknown-linux-musl.tar.gz" cxp- Generate
checksums.txt:
sha256sum cxp-v${version}-*.tar.gz > checksums.txt- In the public
cxprepo on GitHub:
- Create a new Release with tag
v0.1.0 - Upload the
cxp-v${version}-*.tar.gzfiles andchecksums.txtas release assets
After that, the installer in this repo will work for anyone without needing access to your private code.