Skip to content

Commit 931adec

Browse files
committed
Prettify GitHub release artifact names (pt 3)
1 parent 8b13466 commit 931adec

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

Cargo.toml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,27 @@ bin-dir = "{ bin }{ binary-ext }"
6464
pkg-fmt = "tgz"
6565
disabled-strategies = ["quick-install", "compile"]
6666

67+
[package.metadata.binstall.overrides.aarch64-apple-darwin]
68+
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-macos-aarch64{ archive-suffix }"
69+
70+
[package.metadata.binstall.overrides.x86_64-apple-darwin]
71+
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-macos-x86_64{ archive-suffix }"
72+
6773
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
68-
pkg-fmt = "zip"
74+
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-windows-x86_64{ archive-suffix }"
75+
pkg-fmt = "zip"
76+
77+
[package.metadata.binstall.overrides.x86_64-unknown-linux-musl]
78+
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-linux-x86_64-musl{ archive-suffix }"
79+
80+
[package.metadata.binstall.overrides.aarch64-unknown-linux-musl]
81+
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-linux-aarch64-musl{ archive-suffix }"
82+
83+
[package.metadata.binstall.overrides.x86_64-unknown-linux-gnu]
84+
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-linux-x86_64-gnu{ archive-suffix }"
85+
86+
[package.metadata.binstall.overrides.aarch64-unknown-linux-gnu]
87+
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-linux-aarch64-gnu{ archive-suffix }"
88+
89+
[package.metadata.binstall.overrides.x86_64-unknown-freebsd]
90+
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-freebsd-x86_64{ archive-suffix }"

docs/installation_guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ curl --proto '=https' --tlsv1.2 -sSf https://get-celq.github.io/install.sh | \
3333
bash -s -- --target x86_64-unknown-linux-gnu
3434
```
3535

36-
Will always install the binary for `x86_64-unknown-linux-gnu`.
36+
Will always install the binary for `x86_64-unknown-linux-gnu`. See [Rust's target triples](https://doc.rust-lang.org/beta/rustc/platform-support.html) for a list of possible options.
3737

3838
To prevent rate limits from GitHub, set the `$GITHUB_TOKEN` with a valid token. The limit for logged in users is considerably higher. You might also find the [GitHub Actions](#github-actions) section valuable if running in that environment.
3939

0 commit comments

Comments
 (0)