mirror of
https://github.com/yattee/yattee.git
synced 2026-07-20 14:22:02 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user