mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-20 15:14:18 +02:00
Remove release-build.sh
We don't need it anymore now that we have a CI pipeline for release binaries.
This commit is contained in:
parent
c155b6f98d
commit
d1c17f2eb6
1 changed files with 0 additions and 77 deletions
|
|
@ -1,77 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
VERSION=$(grep '^version = ' Cargo.toml | sed 's/.*"\([0-9\.]*\)".*/\1/')
|
||||
GPG_KEY=EA456E8BAF0109429583EED83578F667F2F3A5FA
|
||||
|
||||
declare -a targets=(
|
||||
"x86_64-musl"
|
||||
"i686-musl"
|
||||
"armv7-musleabihf"
|
||||
"arm-musleabi"
|
||||
"arm-musleabihf"
|
||||
)
|
||||
|
||||
declare -a rusttargets=(
|
||||
"x86_64-unknown-linux-musl"
|
||||
"i686-unknown-linux-musl"
|
||||
"armv7-unknown-linux-musleabihf"
|
||||
"arm-unknown-linux-musleabi"
|
||||
"arm-unknown-linux-musleabihf"
|
||||
)
|
||||
|
||||
declare -a completions=(
|
||||
"bash"
|
||||
"fish"
|
||||
"zsh"
|
||||
)
|
||||
|
||||
function docker-download {
|
||||
echo "==> Downloading Docker image: messense/rust-musl-cross:$1"
|
||||
docker pull messense/rust-musl-cross:$1
|
||||
}
|
||||
|
||||
function docker-build {
|
||||
echo "==> Building target: $1"
|
||||
docker run --rm -it -v "$(pwd)":/home/rust/src messense/rust-musl-cross:$1 cargo build --release
|
||||
}
|
||||
|
||||
echo -e "==> Version $VERSION\n"
|
||||
|
||||
for target in ${targets[@]}; do docker-download $target; done
|
||||
echo ""
|
||||
for target in ${targets[@]}; do docker-build $target; done
|
||||
echo ""
|
||||
|
||||
rm -rf "dist-$VERSION"
|
||||
mkdir "dist-$VERSION"
|
||||
|
||||
for i in ${!targets[@]}; do
|
||||
echo "==> Copying ${targets[$i]}"
|
||||
cp "target/${rusttargets[$i]}/release/tldr" "dist-$VERSION/tldr-linux-${targets[$i]}"
|
||||
done
|
||||
echo ""
|
||||
|
||||
for target in ${targets[@]}; do
|
||||
echo "==> Stripping $target"
|
||||
docker run --rm -it -v "$(pwd)":/home/rust/src messense/rust-musl-cross:$target musl-strip -s /home/rust/src/dist-$VERSION/tldr-linux-$target
|
||||
done
|
||||
echo ""
|
||||
|
||||
for target in ${targets[@]}; do
|
||||
echo "==> Signing $target"
|
||||
gpg -a --output "dist-$VERSION/tldr-linux-$target.sig" --detach-sig "dist-$VERSION/tldr-linux-$target"
|
||||
done
|
||||
echo ""
|
||||
|
||||
for completion in ${completions[@]}; do
|
||||
echo "==> Copying ${completion} completion"
|
||||
cp "${completion}_tealdeer" "dist-$VERSION/completions_${completion}"
|
||||
done
|
||||
echo ""
|
||||
|
||||
echo "==> Copying licenses"
|
||||
cp LICENSE-* "dist-$VERSION/"
|
||||
|
||||
echo "Done."
|
||||
Loading…
Add table
Add a link
Reference in a new issue