Skip to content

fix: Enable automatic app relaunch after Sparkle updates#24

Merged
kargnas merged 1 commit intomainfrom
fix/sparkle-auto-relaunch-clean
Feb 1, 2026
Merged

fix: Enable automatic app relaunch after Sparkle updates#24
kargnas merged 1 commit intomainfrom
fix/sparkle-auto-relaunch-clean

Conversation

@kargnas
Copy link
Member

@kargnas kargnas commented Feb 1, 2026

Summary

Fixes issue where OpenCode Bar doesn't automatically relaunch after Sparkle updates

Changes

  • Info.plist: Added SUAllowsAutomaticUpdates key
  • AppDelegate: Implemented SPUUpdaterDelegate protocol
    • Added updaterWillRelaunchApplication hook
    • Added updaterDidRelaunchApplication hook

Problem

Menu Bar apps (LSUIElement=true) require special handling for Sparkle auto-updates to relaunch correctly.

Solution

Implemented Sparkle delegate methods to ensure proper relaunch lifecycle for Menu Bar apps.

Testing

  • ✅ Build succeeds
  • ✅ SwiftLint passes
  • ✅ Only 2 files changed (AppDelegate.swift, Info.plist)
  • Ready for manual testing with next update

Related

- Add SUAllowsAutomaticUpdates to Info.plist for automatic app relaunch
- Implement SPUUpdaterDelegate in AppDelegate to handle relaunch lifecycle
- Add updaterWillRelaunchApplication and updaterDidRelaunchApplication hooks
- Fixes issue where LSUIElement apps don't auto-restart after Sparkle updates

> Co-authored-by: Claude (oMo) <no-reply@claude.ai>
> Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@kargnas kargnas merged commit 6904124 into main Feb 1, 2026
9 checks passed
@kargnas kargnas deleted the fix/sparkle-auto-relaunch-clean branch February 1, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant