windows binaries are .exe

This commit is contained in:
phiresky 2019-06-18 18:05:44 +02:00
parent 9b552178f7
commit 57115923af

View File

@ -29,10 +29,15 @@ mk_tarball() {
# contains shell completion files and the man page. # contains shell completion files and the man page.
local cargo_out_dir="$(cargo_out_dir "target/$TARGET")" local cargo_out_dir="$(cargo_out_dir "target/$TARGET")"
bin_ext=""
if is_windows; then
bin_ext=".exe"
fi
# Copy the binaries and strip it. # Copy the binaries and strip it.
for binary in rga rga-preproc; do for binary in rga rga-preproc; do
cp "target/$TARGET/release/$binary" "$staging/$binary" cp "target/$TARGET/release/$binary$bin_ext" "$staging/$binary$bin_ext"
"${gcc_prefix}strip" "$staging/$binary" # "${gcc_prefix}strip" "$staging/$binary"
done done
# Copy the licenses and README. # Copy the licenses and README.
cp {README.md,LICENSE.md} "$staging/" cp {README.md,LICENSE.md} "$staging/"