Quiet updates like Calls and Docs: "install": "automatic" in mac-updates.json
Human
Prompt
Make Sheets update quietly like Calls and Docs — add "install": "automatic" to native/mac-updates.json (check rastrillo tools/mac_updates.py INSTALL_MODES; config only) before your release dry run, and confirm Sparkle doesn't ask about automatic checks on the second launch.
From this commit's own message. The prompt ledger has no entries for it — which is what a squashed, rebased or amended commit looks like, and what every commit looks like in a repo without a ledger.
Summary
Packaging now writes SUAllowsAutomaticUpdates, SUEnableAutomaticChecks, SUAutomaticallyUpdate and a daily SUScheduledCheckInterval (rastrillo INSTALL_MODES["automatic"]), so Sparkle never asks whether it may check and installs on quit. Config only: SheetsApp still uses NativeUpdater() (default policy), so a manual Check for Updates and an update found by a scheduled check that cannot install silently still use Sparkle's standard UI. test-mac-bundle.py checks the four keys on a release build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+6
−0
native/mac-updates.json+1 −0native/scripts/test-mac-bundle.py+5 −0
CI passed — run details
diff --git a/native/mac-updates.json b/native/mac-updates.json| index 7e0d10e..14d24be 100644 |
| --- a/native/mac-updates.json |
| +++ b/native/mac-updates.json |
| @@ -3,6 +3,7 @@ |
| "feed_url": "https://raw.amadan.net/oficina/native-releases/main/sheets/appcast.xml", |
| "public_ed_key": "/FxO7cZnM7P5c9ZrUPUJvpCnR65sNmrzte+I5vHarE8=", |
| "keychain_account": "oficina", |
| + "install": "automatic", |
| "url_schemes": [ |
| "works.oficina.sheets" |
| ], |
diff --git a/native/scripts/test-mac-bundle.py b/native/scripts/test-mac-bundle.py| index d09628a..876ba02 100644 |
| --- a/native/scripts/test-mac-bundle.py |
| +++ b/native/scripts/test-mac-bundle.py |
| @@ -40,6 +40,11 @@ with tempfile.TemporaryDirectory(prefix="oficina-sheets-launch-") as directory: |
| "apple/Sources/SheetsKit/Resources").glob("*.lproj")) |
| assert sorted(info.get("CFBundleLocalizations", [])) == shipped, (info.get("CFBundleLocalizations"), shipped) |
| assert info.get("CFBundleDevelopmentRegion") == "en", info.get("CFBundleDevelopmentRegion") |
| + # "install": "automatic" in mac-updates.json: Sparkle checks daily and |
| + # installs on quit without first asking whether it may check. |
| + for key in ("SUAllowsAutomaticUpdates", "SUEnableAutomaticChecks", "SUAutomaticallyUpdate"): |
| + assert info.get(key) is True, (key, info.get(key)) |
| + assert info.get("SUScheduledCheckInterval") == 86400, info.get("SUScheduledCheckInterval") |
| assert any("works.oficina.sheets" in entry.get("CFBundleURLSchemes", []) |
| for entry in info.get("CFBundleURLTypes", [])), "works.oficina.sheets URL scheme not registered" |
| executable = app / "Contents/MacOS" / info["CFBundleExecutable"] |