Fix macOS distribution entitlements and Sparkle beta defaults

- Add macOS-specific entitlements via CODE_SIGN_ENTITLEMENTS[sdk=macosx*]:
  the iOS aps-environment key is silently dropped from macOS exports,
  leaving distribution builds without a push entitlement (no CloudKit
  sync pushes). Release now uses Yattee-macOS.entitlements with
  com.apple.developer.aps-environment = production.
- Release-DeveloperID uses Yattee-macOS-DeveloperID.entitlements, adding
  the Sparkle mach-lookup temporary exceptions (-spks/-spki) required
  for the updater to install in a sandboxed app.
- Default Sparkle updater to the beta channel while only beta releases
  exist, so testers receive updates without toggling Advanced settings.
- Set NSHumanReadableCopyright for the app target.
This commit is contained in:
Arkadiusz Fal
2026-06-19 21:59:55 +02:00
parent ca67d480ca
commit e37ac12565
4 changed files with 59 additions and 2 deletions

View File

@@ -50,8 +50,11 @@ final class AppUpdater {
private var observation: NSKeyValueObservation?
private init() {
// Load persisted beta preference before constructing the delegate
let wantsBeta = UserDefaults.standard.bool(forKey: Self.wantsBetaKey)
// Load persisted beta preference before constructing the delegate.
// While only beta releases exist, default to the beta channel so
// testers receive updates without hunting for the Advanced toggle.
// Revisit this default once the first stable release ships.
let wantsBeta = UserDefaults.standard.object(forKey: Self.wantsBetaKey) as? Bool ?? true
self.wantsBetaChannel = wantsBeta
self.delegate.wantsBeta = wantsBeta