mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-25 23:00:03 +00:00
Split crates and clean up structure of codebase (#294)
Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
bf700f9012
commit
4b00f5f143
88 changed files with 2989 additions and 1423 deletions
18
.github/scripts/pack-release-archives.sh
vendored
Executable file
18
.github/scripts/pack-release-archives.sh
vendored
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