Add one-line installers, cargo-binstall, and aarch64-Linux builds - #417
Merged
Conversation
Adds curl|bash / irm|iex / cmd installers served from spotatui.com, cargo-binstall metadata for prebuilt fetches, and a native aarch64-linux release build. README install section regrouped accordingly.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThe project adds Linux ARM64 release builds, ChangesRelease packaging and installation
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant Installer
participant GitHubReleases
participant InstallDirectory
participant ShellProfile
User->>Installer: Run install.sh or install.ps1
Installer->>GitHubReleases: Resolve version and download archive
Installer->>GitHubReleases: Download checksum
Installer->>InstallDirectory: Extract and install binary
Installer->>ShellProfile: Update PATH when enabled
Installer-->>User: Report installation status
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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
Adds several ways to install spotatui, all reusing the release assets
cd.ymlalready builds:spotatui.com:install.sh(macOS/Linux/WSL),install.ps1(Windows PowerShell),install.cmd(Windows CMD). Each detects OS/arch, downloads the matching release asset, verifies its.sha256, installs to PATH, and auto-configures the shell profile (opt out withSPOTATUI_NO_MODIFY_PATH=1). Canonical scripts live here onmain; the website redirectsspotatui.com/install.*to them (committed separately to the website repo'smain).cargo binstall spotatuivia[package.metadata.binstall], which fetches prebuilt binaries instead of compiling (per-target overrides, since our assets use friendly names rather than target triples).cd.ymlrow on the free nativeubuntu-24.04-armrunner (Raspberry Pi 4/5, ARM servers, Asahi). Producesspotatui-linux-aarch64.tar.gzplus an arm64.deb..rpmpackaging is intentionally left as a follow-up (see #416); it needs its own Fedora dependency-resolution validation.Testing
ubuntu-24.04-armrunner (throwaway workflow): full release build + tarball +cargo-deb+ smoke-run in ~8 min. Output:ELF 64-bit ... ARM aarch64,spotatui_0.40.3-1_arm64.deb, andspotatui --version->spotatui 0.40.3.install.shend-to-end against the real v0.40.3 release: download + checksum verify + extract + install + run. Also tested thelatestpath and graceful failure on a missing asset (clean error, exit 1).install.shPATH management with a fake$HOME: appends the correct line to.bashrc/.zshrcper$SHELL, idempotent on re-run;SPOTATUI_NO_MODIFY_PATH=1writes nothing.bash -n install.shclean;cargo metadataconfirms the binstall overrides parse;cd.ymlYAML validated with the new arm64 row.install.ps1(no Windows/PowerShell available locally). Its logic mirrors the testedinstall.sh, but Windows-specific bits (registry PATH,Expand-Archive,Get-FileHash) are unverified. Thecargo binstallmetadata takes effect on the next crates.io publish.Summary by CodeRabbit
New Features
cargo binstallto quickly install prebuilt binaries.Infrastructure