Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate better ways to run the updater script as sudo on macOS if needed #253

Open
Deadpikle opened this issue Nov 21, 2021 · 0 comments

Comments

@Deadpikle
Copy link
Collaborator

Deadpikle commented Nov 21, 2021

Running things as sudo is just a mess if you don't have a terminal 😅 We can use osascript to run a shell script with admin privileges, but it's kind of clunky, as the sudo prompt says osascript rather than your bundle or app name, which might be suspicious to users. See the macOS Avalonia sample for this here: https://github.com/NetSparkleUpdater/NetSparkle/tree/develop/src/NetSparkle.Samples.Avalonia.MacOS.

I really want to avoid forcing the end user to ship more (native/other) binaries with their application or force users to have a .app for their application (which I think is what Sparkle assumes?), but in order to get all the features we want and actually make things work well, we may not be able to avoid it...

Some links to think about:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant