Replies: 2 comments 8 replies
-
Cannot reproduce issue. What macOS version are you using? Did you build sparkle-cli yourself (perhaps incorrectly? e.g. signed with sandboxing) or are you using a prebuilt binary we provide? Sparkle does a simulated test to see if it has sufficient permission to replace/overwrite the bundle ( |
Beta Was this translation helpful? Give feedback.
-
Hi, Any ptr to what to do to figure out why it fails. The reason for using Sparkle-cli is that running Sparkle update from itself (if the background only flag is turned off) throws up the "Authentication dialog". |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm trying to update an app (my own) that installed by a .pkg-installer and installed with privs (owner is system) using the sparkle-cli as sparkle itself has "priv issues" and I need a silent update (No user interactions). The app is a faceless background application that is launched by launchd as root ( /Library/LaunchDaemons for the .plist file)
I've signed the sparkle.app with the same keys as the app to update.
Test using sparkle-cli
totte@machine % sudo ./sparkle.app/Contents/MacOS/sparkle /Applications/xxxxxxxxx.App --check-immediately --grant-automatic-checks --verbose
A new update check cannot be performed because updating this bundle will require user authorization. Please use --interactive or run as root to allow this.
To test that sudo actually is running sparkle-cli as root (just as a proof)
totte@machine % sudo ./sparkle /Applications/xxxxxxxxx.App --check-immediately --grant-automatic-checks --verbose --interactive
Error: --interactive is not supported when running as root
So, how to break this catch-22 using sparkle-cli
I'm using the Sparkle 2.6.4
Cheers,
Totte - Code 66
Beta Was this translation helpful? Give feedback.
All reactions