All your machines, one app. For you and your AI agents: agent sessions, desktops, files, logs and GitHub across your Macs, Linux and Windows machines, with an MCP server.
Releases: try stapling again when Apple's ticket server drops the connection
Adib Hanna3a96a8c50b1b
diff --git a/scripts/notarize-macos.sh b/scripts/notarize-macos.shindex a50f8f8..05bf01f 100755--- a/scripts/notarize-macos.sh+++ b/scripts/notarize-macos.sh@@ -47,6 +47,19 @@ notarize() { # <file> <credentials...>fi}+# Attaches the notary ticket. Apple's ticket server can drop the connection, or+# not have the ticket yet right after notarizing, so it tries a few times.+staple() { # <file>+ for try in 1 2 3 4 5; do+ xcrun stapler staple "$1" && return+ [ "$try" = 5 ] && break+ echo "▸ stapling failed; trying again in 20 seconds" >&2+ sleep 20+ done+ echo "error: couldn't staple $1" >&2+ exit 1+}+work=$(mktemp -d)trap 'rm -rf "$work"' EXIT@@ -55,7 +68,7 @@ if [ -n "$notarize" ]; thencodesign --verify --strict "$app"ditto -c -k --keepParent "$app" "$work/Muxen.zip"notarize "$work/Muxen.zip" "$@"- xcrun stapler staple "$app"+ staple "$app"fi# Then the DMG: the app and a link to Applications to drag it to.@@ -68,7 +81,7 @@ if [ -n "$notarize" ]; thenidentity=${MUXEN_SIGN_IDENTITY:-$(security find-identity -v -p codesigning 2>/dev/null | sed -n 's/.*"\(Developer ID Application: [^"]*\)".*/\1/p' | head -n1)}codesign --force --timestamp -s "$identity" "$dmg"notarize "$dmg" "$@"- xcrun stapler staple "$dmg"+ staple "$dmg"spctl --assess --type open --context context:primary-signature --verbose=2 "$dmg"fiecho "Built $dmg ($(du -h "$dmg" | cut -f1))"