Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(release): use a portable mktemp template for the notarytool log

vastsa05cb276f2b79
diff --git a/scripts/notarize-and-staple-macos-release-dmg.sh b/scripts/notarize-and-staple-macos-release-dmg.sh
index b5dc63d31..811062029 100755
--- a/scripts/notarize-and-staple-macos-release-dmg.sh
+++ b/scripts/notarize-and-staple-macos-release-dmg.sh
@@ -54,7 +54,9 @@ fi
DMG="${DMGS[0]}"
-SUBMIT_LOG="$(mktemp -t pi-desktop-notarytool-submit)"
+# Explicit template: GNU `mktemp -t` rejects a name without X's, and BSD
+# `mktemp -t` would append its own suffix. `TMPDIR` is set on macOS runners.
+SUBMIT_LOG="$(mktemp "${TMPDIR:-/tmp}/pi-desktop-notarytool-submit.XXXXXX")"
trap 'rm -f "$SUBMIT_LOG"' EXIT
# `notarytool log` needs the same credentials as `submit`; both are passed on