binrun
v0.2.1
Published
Run arch-specific binaries released via GoReleaser
Maintainers
Readme
binrun
A Node.js utility for running architecture-specific binaries released via GoReleaser on GitHub.
Installation
npm install -g binrunOr run it directly with npx:
npx binrun [--debug] github.com/username/repo[@version] [args...]Usage
binrun [--debug] github.com/dstotijn/[email protected] [args...]Where:
--debugis an optional flag to enable debug logginggithub.com/dstotijn/some-go-projectis the GitHub repository path@v1.0.0is the optional release version (defaults to latest)[args...]are any arguments to pass to the binary
Features
- 🔄 Automatically detects your system architecture and OS
- 📦 Downloads the appropriate binary for your system
- 🗄️ Caches binaries locally for faster subsequent runs
- 🔄 Supports versioned releases
- 🗃️ Handles tar.gz archives common in Goreleaser releases
How it works
- Parses the GitHub repository URL and version
- Queries the GitHub API to find releases
- Finds the appropriate binary for your operating system and architecture
- Downloads and caches the binary
- Executes the binary with any provided arguments
Supported platforms
- 💻 macOS (Darwin): arm64, x86_64
- 🐧 Linux: arm64, x86_64, i386
- 🪟 Windows: arm64, x86_64, i386
License
Apache 2.0 License
