Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

ci: unset every notary variable when a dry run skips notarizing

leepokai0ef159c0a096
diff --git a/.github/workflows/release-desktop.yml b/.github/workflows/release-desktop.yml
index 6a2b18f9..290d0545 100644
--- a/.github/workflows/release-desktop.yml
+++ b/.github/workflows/release-desktop.yml
@@ -95,14 +95,16 @@ jobs:
# Same-repo PRs get the secrets; sign them too so the dry run checks the real app.
CSC_FOR_PULL_REQUEST: "true"
# Notarized with the App Store Connect API key: unlike an app-specific password, it
- # survives Apple ID password changes. Without the key ID electron-builder skips notarizing.
+ # survives Apple ID password changes.
NOTARIZE: ${{ github.event_name != 'pull_request' || github.base_ref == 'main' }}
APPLE_API_KEY: ${{ runner.temp }}/AuthKey.p8
- APPLE_API_KEY_ID: ${{ (github.event_name != 'pull_request' || github.base_ref == 'main') && secrets.ASC_KEY_ID || '' }}
+ APPLE_API_KEY_ID: ${{ secrets.ASC_KEY_ID }}
APPLE_API_ISSUER: ${{ secrets.ASC_ISSUER_ID }}
ASC_PRIVATE_KEY: ${{ secrets.ASC_PRIVATE_KEY }}
run: |
printf '%s\n' "$ASC_PRIVATE_KEY" > "$APPLE_API_KEY"
+ # electron-builder skips notarizing only when all three are unset (one alone is an error).
+ [ "$NOTARIZE" = true ] || unset APPLE_API_KEY APPLE_API_KEY_ID APPLE_API_ISSUER
npm ci
npm run icons
npm run dist:mac:main -- --publish never