mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 20:48:43 +00:00
18 lines
358 B
Bash
Executable file
18 lines
358 B
Bash
Executable file
#!/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
|