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.

fix(desktop): sign the update feed for the earlier Mac app

leepokai196b15d49f17
diff --git a/.github/workflows/release-desktop.yml b/.github/workflows/release-desktop.yml
index e61f3975..e13c54f1 100644
--- a/.github/workflows/release-desktop.yml
+++ b/.github/workflows/release-desktop.yml
@@ -116,6 +116,10 @@ jobs:
--download-url-prefix "https://github.com/leepokai/Codync/releases/download/v${VERSION}/" \
--link https://www.codync.dev/ -o build/appcast.xml build/updates
python3 packaging/updates/annotate-appcast.py build/appcast.xml "$MIN_APP"
+ python3 -m venv "$RUNNER_TEMP/update-verification"
+ "$RUNNER_TEMP/update-verification/bin/pip" install 'cryptography>=44,<47'
+ "$RUNNER_TEMP/update-verification/bin/python" packaging/updates/verify-appcast.py \
+ build/appcast.xml apps/desktop/dist/mac-universal/Codync.app apps/desktop/dist/codync-macos.zip
- uses: actions/upload-artifact@v4
if: "!startsWith(github.ref, 'refs/tags/')"
diff --git a/apps/desktop/electron-builder.yml b/apps/desktop/electron-builder.yml
index 5c8b9634..b9767912 100644
--- a/apps/desktop/electron-builder.yml
+++ b/apps/desktop/electron-builder.yml
@@ -43,6 +43,8 @@ mac:
extendInfo:
NSMicrophoneUsageDescription: Talk to your bots in a voice call.
NSSpeechRecognitionUsageDescription: Your words are transcribed on this Mac and sent to your bot as a message.
+ # generate_appcast signs the zip only when the app inside names this key (packaging/updates).
+ SUPublicEDKey: /WvuKYw0ghkj3ExQbCejTquAcozuP1Llo2k8TIvx0Mc=
# The host ships inside the Mac app; Linux uses the installed codync-host (an AppImage's
# mount path changes every launch, so a service can't point into it).
extraResources:
diff --git a/packaging/updates/verify-appcast.py b/packaging/updates/verify-appcast.py
index 8a8db654..4946c226 100644
--- a/packaging/updates/verify-appcast.py
+++ b/packaging/updates/verify-appcast.py
@@ -30,7 +30,6 @@ def main():
archive.read_bytes(),
)
assert info["SUPublicEDKey"] == public_key, "app has the wrong Sparkle public key"
- assert info["SUVerifyUpdateBeforeExtraction"] is True
min_app = item.findtext("{https://codync.dev/xml-namespaces/appcast}minApp")
assert min_app and all(part.isdigit() for part in min_app.split(".")), "appcast needs codync:minApp"
print("Sparkle appcast matches the signed app and release archive")