Skip to content

Commit 6df0745

Browse files
authored
Try adding cargo-binstall compat (#18)
1 parent ef524ad commit 6df0745

2 files changed

Lines changed: 17 additions & 6 deletions

File tree

Cargo.toml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,24 @@ version = "0.5.0"
44
edition = "2021"
55
license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
66
description = "Linker for `wasm32-wasip2`"
7-
repository = "https://github.com/alexcrichton/wasm-component-ld"
7+
repository = "https://github.com/bytecodealliance/wasm-component-ld"
88
readme = "README.md"
99

10+
[package.metadata.binstall]
11+
pkg-url = "{repo}/releases/download/v{version}/{name}-v{version}-{target-arch}-{target-family}{archive-suffix}"
12+
bin-dir = "{name}-v{version}-{target-arch}-{target-family}/{bin}{binary-ext}"
13+
pkg-fmt = "tgz"
14+
[package.metadata.binstall.overrides.x86_64-apple-darwin]
15+
pkg-url = "{repo}/releases/download/v{version}/{name}-v{version}-{target-arch}-macos{archive-suffix}"
16+
bin-dir = "{name}-v{version}-{target-arch}-macos/{bin}{binary-ext}"
17+
[package.metadata.binstall.overrides.aarch64-apple-darwin]
18+
pkg-url = "{repo}/releases/download/v{version}/{name}-v{version}-{target-arch}-macos{archive-suffix}"
19+
bin-dir = "{name}-v{version}-{target-arch}-macos/{bin}{binary-ext}"
20+
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
21+
pkg-fmt = "zip"
22+
[package.metadata.binstall.overrides.x86_64-pc-windows-gnu]
23+
pkg-fmt = "zip"
24+
1025
[dependencies]
1126
anyhow = "1.0.80"
1227
clap = { version = "4.5.4", features = ['derive'] }

ci/build-tarballs.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ rm -rf tmp
99
mkdir tmp
1010
mkdir -p dist
1111

12-
tag=dev
13-
if [[ $GITHUB_REF == refs/tags/* ]]; then
14-
tag=${GITHUB_REF:10}
15-
fi
16-
12+
tag=$(./ci/print-current-version.sh)
1713
bin_pkgname=wasm-component-ld-$tag-$platform
1814

1915
mkdir tmp/$bin_pkgname

0 commit comments

Comments
 (0)