Repository navigation
0.3.0
feat: Offer to move app to Applications
Apps cannot update themselves if opened from a disk image or read-only volume. Sunshine can now move the app to the Applications folder and relaunch it.
SunshineUpdaterUIController.offerToMoveToApplicationsIfNeeded()shows an alert if the apps is in an unsupported location. This should be called at launch.SunshineUpdater.shouldOfferMoveToApplicationsandmoveToApplicationsAndRelaunch()are the headless equivalents.- The app is copied to
/Applications, or to~/Applicationsif that is not writable. An existing bundle with the same name is moved to trash. The quarantine attribute is removed from the copy.
feat: Install location errors
install() now throws SunshineError.installLocationUnsuitable if the app runs from an unsupported location. The error message tells the user to move the app to the Applications folder. Previously gave a generic permissions error.
InstallLocationChecker.issue(for:) returns the InstallLocationIssue (.translocated or .readOnlyVolume) for a bundle, or nil.
Other
- (breaking)
SunshineErrorhas two new cases,installLocationUnsuitable(_:_:)andmoveToApplicationsFailed(underlying:). - Update error view has a Dismiss button.
- Code comments and README text rewritten for consistent style.