Skip to content

0.4.0

Choose a tag to compare

@octavore octavore released this 21 Nov 20:11
· 1 commit to main since this release
1ecefb8

feat: Replace an existing copy when moving app to Applications

If a bundle with the same name is already in the destination folder, Sunshine now quits its runnings instances before moving it to the trash. Each instance gets terminate(), then forceTerminate() after a timeout.

  • SunshineUpdaterUIController.offerToMoveToApplicationsIfNeeded() shows a second alert before it replaces an existing copy. Cancelling leaves the current app running where it is.
  • SunshineUpdater.existingCopyInApplications returns the bundle that would be replaced, or nil.
  • SunshineUpdater.moveToApplicationsAndRelaunch(quitTimeout:) defaults to waiting 5 seconds before a force terminate.

feat: Customize the move offer

offerToMoveToApplicationsIfNeeded has new parameters:

  • allowsSuppression shows or hides the "do not ask again" checkbox. The default is true.
  • confirmsReplacement asks before an existing copy is replaced. The default is true. Pass false to replace without asking.
  • quitTimeout is passed to moveToApplicationsAndRelaunch(quitTimeout:).
  • text takes a MoveToApplicationsText with the titles, messages, and button labels of the alerts.