diff options
author | Francesc Elies <elies@posteo.net> | 2024-03-07 18:34:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-07 18:34:53 +0100 |
commit | 1316d9646dbd83d997ac80a9181c6aa5d3eab2ae (patch) | |
tree | 96436a26549c4c773b59017e7477505ea66a2c21 | |
parent | 2fc2283b2bdbfdbaba9b265ee719eb64c0b58a73 (diff) |
cargo binstall broot (#847)
Adds support for cargo binstall broot
-rwxr-xr-x | release-for-binstall.sh | 9 | ||||
-rwxr-xr-x | release.sh | 7 |
2 files changed, 14 insertions, 2 deletions
diff --git a/release-for-binstall.sh b/release-for-binstall.sh new file mode 100755 index 0000000..75ca9ed --- /dev/null +++ b/release-for-binstall.sh @@ -0,0 +1,9 @@ +version=$(./version.sh) +mkdir -p releases/broot_${version} + +cd build +# make one zip file for each architecture +# cargo binstall needs that +# see default format https://github.com/cargo-bins/cargo-binstall/blob/main/SUPPORT.md#defaults +find . -maxdepth 1 -type d | grep -v -e "resources" -e "completion" -e "default-conf" -e '^\.$' | cut -c 3- |xargs -I {} zip -rj ../releases/broot_${version}/broot-{}-v${version}.zip {} +cd - @@ -27,5 +27,8 @@ zip -r "../broot_$version.zip" * cd - # copy it to releases folder -mkdir releases -cp "broot_$version.zip" releases +mkdir -p releases/broot_${version} +cp "broot_$version.zip" releases/broot_${version} + +# create zip files for `cargo binstall broot` +./release-for-binstall.sh |