lately: embed Sparkle 2.9.5 in the macOS app #69
No reviewers
Labels
No labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
key-store/key.store!69
Loading…
Reference in a new issue
No description provided.
Delete branch "lately-sparkle-embed"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Embeds Sparkle 2.9.5 in
lately_macos_releaseso Lately can update fromhttps://lately.org/builds/sparkle/appcast.xml(feed served + published by the follow-up PR; merge order: this first, so no unsigned appcast is ever produced).MODULE.bazelhttp_archivesparkle(Sparkle-2.9.5.tar.xz, sha256015336b6…73cc, verified twice) +bazel/lately/Sparkle.BUILD.bazel(apple_dynamic_framework_import— the tar.xz shipsSparkle.framework, not an xcframework).BUILD.bazel:@sparkle//:Sparkledep onlately_macos_app_sources;ipa_post_processorrestoring exec bits on Sparkle's helpers (rules_apple 4.5.3's framework importer chmods them 0644 and Sparkle 2.9.5 refuses to install without +x).Info.plist: SUFeedURL / SUPublicEDKey (same Ed25519 key as key.store) / SU* mirroring key.store; both macOS entitlements get the Sparkle 2 sandbox mach-lookup exceptions fororg.lately.phi.AppDelegate.swift: retainedSPUStandardUpdaterController+ “Check for Updates…” (⌘U).Adversarially reviewed against rules_apple 4.5.3 / rcodesign / Sparkle sources: ship.
🤖 Generated with Claude Code
rules_apple 4.5.3's imported_dynamic_framework_processor copies every file of an imported framework other than the framework's own binary through _copy_framework_file(..., executable=False), i.e. chmod 0644 (tools/imported_dynamic_framework_processor/ imported_dynamic_framework_processor.py). For Sparkle that strips the executable bit from Sparkle.framework/Versions/B/Autoupdate, Updater.app/Contents/MacOS/Updater and XPCServices/{Installer,Downloader}.xpc/Contents/MacOS/*. Sparkle 2.9 checks exactly this before installing (SPUHelperHasExecutablePermission requires S_IXUSR|S_IXGRP|S_IXOTH and reports "were they lost during a bad file copy?"), and launchd could not spawn the XPC service anyway, so without a fix every Lately update would download, verify and then fail to install. Nothing downstream repairs it: process_and_sign zips with unix modes, runner.sh build_lately_macos unzips them, and rcodesign preserves the mode of every Mach-O it re-signs. macos_application's ipa_post_processor runs on the unzipped bundle after assembly and before rules_apple signs it, which is the one Bazel-owned hook for this, so //:lately_macos_release now points it at a small sh_binary that chmod 755s those helpers under any Sparkle.framework in the work dir. It is idempotent, touches nothing but modes (so the ad-hoc seals rules_apple already computed for the framework stay valid) and keeps bazel-bin/lately_macos_release.zip correct on its own instead of relying on a runner.sh fix-up.