release/install.sh: Install executable with .exe suffix on Windows

Otherwise Go doesn't let you execute it lol.
This commit is contained in:
Anmol Sethi 2022-12-06 08:53:50 -08:00
parent 651c7f553f
commit 563b45dd01
No known key found for this signature in database
GPG key ID: 25BC68888A99A8BA
3 changed files with 17 additions and 3 deletions

View file

@ -6,7 +6,14 @@ cd -- "$(dirname "$0")/.."
main() {
ensure_prefix_sh_c
"$sh_c" mkdir -p "$PREFIX/bin"
"$sh_c" install ./bin/d2 "$PREFIX/bin/d2"
ensure_os
if [ "$OS" = windows ]; then
"$sh_c" install ./bin/d2 "$PREFIX/bin/d2.exe"
else
"$sh_c" install ./bin/d2 "$PREFIX/bin/d2"
fi
"$sh_c" mkdir -p "$PREFIX/share/man/man1"
"$sh_c" install ./man/d2.1 "$PREFIX/share/man/man1"
}

View file

@ -5,7 +5,14 @@ cd -- "$(dirname "$0")/.."
main() {
ensure_prefix_sh_c
"$sh_c" rm -f "$PREFIX/bin/d2"
ensure_os
if [ "$OS" = windows ]; then
"$sh_c" rm -f "$PREFIX/bin/d2.exe"
else
"$sh_c" rm -f "$PREFIX/bin/d2"
fi
"$sh_c" rm -f "$PREFIX/share/man/man1/d2.1"
}

2
ci/sub

@ -1 +1 @@
Subproject commit c186afdcc1a6ef8a8f6202df2cb3fd89f104a567
Subproject commit 54d7f80dc41689707ab00cca52d430e898672e9f