diff options
author | Canop <cano.petrole@gmail.com> | 2024-03-07 20:11:52 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2024-03-07 20:11:52 +0100 |
commit | 688a2a2416594ca57a0294567827bcdd81b391d9 (patch) | |
tree | 0ee776ba7fb32797f64e9982a1f6fa8f69774ca7 | |
parent | b2a3a769e0567028292e42a9ab12b2baf7e87357 (diff) | |
parent | 1316d9646dbd83d997ac80a9181c6aa5d3eab2ae (diff) |
Merge remote-tracking branch 'origin/main'
-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 |