NetSparkleUpdater/NetSparkle

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

开放

#253 创建于 2021年11月21日

 (0 条评论) (0 个反应) (0 位负责人)C# (101 个派生)auto 404
enhancementhelp wantedresearch

仓库指标

星标
 (822 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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:

贡献者指南