Skip to content

Commit 25262a1

Browse files
committed
Remove distinctions between GNU / MUSL builds in release.sh
1 parent be99a42 commit 25262a1

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

scripts/release.sh

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -71,30 +71,21 @@ function ume::build {
7171
! [ -d "./.result" ] && mkdir -p ./.result
7272
pushd ./.result >/dev/null
7373

74-
extra=""
75-
if [ "$(uname -s)" == "Linux" ]; then
76-
if [ "$target" == "x86_64-unknown-linux-musl" ]; then
77-
extra="-musl"
78-
else
79-
extra="-gnu"
80-
fi
81-
fi
82-
8374
echo "===> Compiling release \`ume\` binary [target=$target] [flags=$flags] [\$CARGO=$cargo] [os=$os] [arch=$arch]"
8475
echo "$ $cargo build --release --locked --target $target $flags"
8576
"$cargo" build --release --locked --target="$target" $flags || exit 1
8677

87-
echo "Moving ./target/$target/release/ume ~> .result/ume-$os-$arch$extra"
88-
mv ../target/"$target"/release/ume ./"ume-$os-$arch$extra" || exit 1
78+
echo "Moving ./target/$target/release/ume ~> .result/ume-$os-$arch"
79+
mv ../target/"$target"/release/ume ./"ume-$os-$arch" || exit 1
8980

90-
echo "===> Generating sha256sum file [binary=ume-$os-$arch$extra]"
81+
echo "===> Generating sha256sum file [binary=ume-$os-$arch]"
9182
if [ "$(uname -s)" == "Darwin" ]; then
92-
shasum -a 256 "ume-$os-$arch$extra" > ./"ume-$os-$arch$extra.sha256"
83+
shasum -a 256 "ume-$os-$arch" > ./"ume-$os-$arch.sha256"
9384
else
94-
sha256sum "ume-$os-$arch$extra" > ./"ume-$os-$arch$extra.sha256"
85+
sha256sum "ume-$os-$arch" > ./"ume-$os-$arch.sha256"
9586
fi
9687

97-
echo "===> Created SHA256 file for binary [binary=ume-$os-$arch$extra]"
88+
echo "===> Created SHA256 file for binary [binary=ume-$os-$arch]"
9889
echo "===> Completed."
9990

10091
popd >/dev/null

0 commit comments

Comments
 (0)