From 58e4701557ea300dd37143926c26dda03b9ecdca Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Mon, 12 Jan 2026 20:38:38 -0800 Subject: [PATCH] scripts: increase notarization timeout to 20m (#13697) The 100MB mlx.metallib file significantly increased the app bundle size, causing Apple's notarization service to timeout with the previous 10m limit. --- scripts/build_darwin.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build_darwin.sh b/scripts/build_darwin.sh index d5c5ee17e..7293be012 100755 --- a/scripts/build_darwin.sh +++ b/scripts/build_darwin.sh @@ -94,7 +94,7 @@ _sign_darwin() { # create a temporary zip for notarization TEMP=$(mktemp -u).zip ditto -c -k --keepParent dist/darwin/ollama "$TEMP" - xcrun notarytool submit "$TEMP" --wait --timeout 10m --apple-id $APPLE_ID --password $APPLE_PASSWORD --team-id $APPLE_TEAM_ID + xcrun notarytool submit "$TEMP" --wait --timeout 20m --apple-id $APPLE_ID --password $APPLE_PASSWORD --team-id $APPLE_TEAM_ID rm -f "$TEMP" fi @@ -184,7 +184,7 @@ _build_macapp() { # Notarize and Staple if [ -n "$APPLE_IDENTITY" ]; then - $(xcrun -f notarytool) submit dist/Ollama-darwin.zip --wait --timeout 10m --apple-id "$APPLE_ID" --password "$APPLE_PASSWORD" --team-id "$APPLE_TEAM_ID" + $(xcrun -f notarytool) submit dist/Ollama-darwin.zip --wait --timeout 20m --apple-id "$APPLE_ID" --password "$APPLE_PASSWORD" --team-id "$APPLE_TEAM_ID" rm -f dist/Ollama-darwin.zip $(xcrun -f stapler) staple dist/Ollama.app ditto -c -k --keepParent dist/Ollama.app dist/Ollama-darwin.zip @@ -208,7 +208,7 @@ _build_macapp() { rm -f dist/rw*.dmg codesign -f --timestamp -s "$APPLE_IDENTITY" --identifier ai.ollama.ollama --options=runtime dist/Ollama.dmg - $(xcrun -f notarytool) submit dist/Ollama.dmg --wait --timeout 10m --apple-id "$APPLE_ID" --password "$APPLE_PASSWORD" --team-id "$APPLE_TEAM_ID" + $(xcrun -f notarytool) submit dist/Ollama.dmg --wait --timeout 20m --apple-id "$APPLE_ID" --password "$APPLE_PASSWORD" --team-id "$APPLE_TEAM_ID" $(xcrun -f stapler) staple dist/Ollama.dmg else echo "WARNING: Code signing disabled, this bundle will not work for upgrade testing"