mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-04 11:10:02 +00:00
Fixes for the CI (#242)
This commit is contained in:
parent
450e29d9cc
commit
51b300d29e
13 changed files with 375 additions and 276 deletions
18
ci-scripts/pack-release-archives.sh
Executable file
18
ci-scripts/pack-release-archives.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
set -euxo pipefail
|
||||
|
||||
for o in outputs/*; do
|
||||
pushd "$o"
|
||||
|
||||
chmod +x cargo-binstall*
|
||||
cp ../../LICENSE.txt ../../README.md .
|
||||
|
||||
target=$(basename "$o" | cut -d. -f1)
|
||||
if grep -qE '(apple|windows)' <<< "$target"; then
|
||||
zip "../cargo-binstall-${target}.zip" *
|
||||
else
|
||||
tar cv * | gzip -9 > "../cargo-binstall-${target}.tgz"
|
||||
fi
|
||||
|
||||
popd
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue