gh-install icon indicating copy to clipboard operation
gh-install copied to clipboard

Install from github releases

trafficstars

gh-install

Install pre-built binaries from GitHub.

Build Status

Getting Started

Usage

Download the script for your platform:

  • bash
  • powershell

And run it:

$ ./install.sh --git <org>/<repo>
# Or
PS install.ps1 -git <org>/<repo>

and the binary will be installed to $HOME/.cargo/bin unless --path is specified

Or use the Azure Pipeline template (example).

Creating compatible artifacts

The filename must be of the form <crate>-<tag>-<target>.<format>

  • <crate>: If it does not match <repo>, users will need to pass in the --crate <crate> flag
  • <tag>: Must be the tag the artifact is associated with. install.* can automatically use the latest tag if it starts with a v and looks like a version.
  • <target>: The target triplet. If rust is installed, it will be inferred from that.
  • <format>: Must be zip for Windows and tar.gz for Linux/Mac.

All binaries in the root of the artifact will be copied to the --path.

For an Azure Pipelines example, see committed.

License

Licensed under either of

  • Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Thanks for japaric/trust for the original install.sh.