Skip to content

Commit

Permalink
add .exe extension to windows binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
jayconrod committed Nov 5, 2024
1 parent 7c4ebe6 commit 218f462
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion infra/release-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ sign_and_notarize_binary () {
return
}

EXT=
case "${OS}" in
macos)
TARGETS=(
Expand All @@ -88,6 +89,7 @@ windows)
TARGETS=(
//cmd/engflow_auth:engflow_auth_windows_x64
)
EXT=.exe
;;
esac

Expand All @@ -104,5 +106,5 @@ trap uninstall_cert EXIT
for target in "${TARGETS[@]}"; do
target_file=$(bazel cquery --output=files "${target}")
sign_and_notarize_binary "${target_file}"
cp "${target_file}" _out/
cp "${target_file}" "_out/${target_file}${EXT}"
done

0 comments on commit 218f462

Please sign in to comment.