diff --git a/ci/release/template/scripts/install.sh b/ci/release/template/scripts/install.sh index 1db6c5d1f..e6fb00720 100755 --- a/ci/release/template/scripts/install.sh +++ b/ci/release/template/scripts/install.sh @@ -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" } diff --git a/ci/release/template/scripts/uninstall.sh b/ci/release/template/scripts/uninstall.sh index 686335c9e..04f2319a8 100755 --- a/ci/release/template/scripts/uninstall.sh +++ b/ci/release/template/scripts/uninstall.sh @@ -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" } diff --git a/ci/sub b/ci/sub index c186afdcc..54d7f80dc 160000 --- a/ci/sub +++ b/ci/sub @@ -1 +1 @@ -Subproject commit c186afdcc1a6ef8a8f6202df2cb3fd89f104a567 +Subproject commit 54d7f80dc41689707ab00cca52d430e898672e9f