NetSparkleUpdater / NetSparkleUpdater/NetSparkle

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

Open
#253 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted research
Dominant language
C#
Stars
832
Forks
103
PR merge metrics
No merged PRs in 30d

Description

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:

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the macOS Avalonia sample at src/NetSparkle.Samples.Avalonia.MacOS and the linked macOS authorization and graphical sudo references. Compare approaches against the stated constraints around bundle naming, extra binaries, and requiring a .app; done means documenting a concrete viable direction or the reasons those constraints cannot all be met.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, macos, shell
Domain
desktop, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.