Repository navigation
0.4.0
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.existingCopyInApplicationsreturns the bundle that would be replaced, ornil.SunshineUpdater.moveToApplicationsAndRelaunch(quitTimeout:)defaults to waiting 5 seconds before a force terminate.
feat: Customize the move offer
offerToMoveToApplicationsIfNeeded has new parameters:
allowsSuppressionshows or hides the "do not ask again" checkbox. The default istrue.confirmsReplacementasks before an existing copy is replaced. The default istrue. Passfalseto replace without asking.quitTimeoutis passed tomoveToApplicationsAndRelaunch(quitTimeout:).texttakes aMoveToApplicationsTextwith the titles, messages, and button labels of the alerts.