Skip to content

macOS: move-to-Applications prompt + fix Sparkle helper permissions#12

Merged
johnqherman merged 2 commits into
masterfrom
feat/move-to-applications
Jul 3, 2026
Merged

macOS: move-to-Applications prompt + fix Sparkle helper permissions#12
johnqherman merged 2 commits into
masterfrom
feat/move-to-applications

Conversation

@johnqherman

@johnqherman johnqherman commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Two macOS updater fixes:

1. Move to Applications prompt. Sparkle refuses to update an app running from its download location (Downloads, mounted DMG, App Translocation path). On launch, when the bundle is outside /Applications, offer to move it: copy to /Applications (fallback ~/Applications), strip quarantine so the copy is not translocated, trash the old bundle when deletable, relaunch. Declining is remembered.

2. Sparkle helpers shipped non-executable. install(DIRECTORY) defaults files to 644, stripping execute bits from Sparkle's Autoupdate, Updater.app, and XPC services. launchd refused to exec them (errno 13, confirmed in Console logs) and every update failed with Sparkle's generic updater error. Fixed with USE_SOURCE_PERMISSIONS.

Sparkle cannot update an app running from Downloads, a mounted DMG, or
an App Translocation path. Prompt once at startup, copy the bundle to
/Applications (falling back to ~/Applications), strip quarantine so
Gatekeeper does not translocate the copy, trash the old copy when
deletable, and relaunch from the new location.
@johnqherman
johnqherman force-pushed the feat/move-to-applications branch from 185f201 to d1ac86e Compare July 3, 2026 21:43
install(DIRECTORY) defaults every file to 644, which stripped the
execute bits from Sparkle's Autoupdate, Updater.app, and XPC helpers.
launchd then refused to run them (errno 13) and every macOS update
died with Sparkle's generic updater error.
@johnqherman johnqherman changed the title Offer to move the app to /Applications on macOS macOS: move-to-Applications prompt + fix Sparkle helper permissions Jul 3, 2026
@johnqherman
johnqherman merged commit e535086 into master Jul 3, 2026
3 checks passed
@johnqherman
johnqherman deleted the feat/move-to-applications branch July 3, 2026 21:55
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