macos: setup the standard sparkle driver for no-window scenario

If there are no windows, we use the standard sparkle driver to drive
the standard window-based update UI.
This commit is contained in:
Mitchell Hashimoto
2025-10-09 08:57:48 -07:00
parent bbf875216f
commit f2e5b8fb2d
2 changed files with 6 additions and 2 deletions

View File

@@ -18,7 +18,9 @@ class UpdateController {
/// Initialize a new update controller.
init() {
let hostBundle = Bundle.main
self.userDriver = UpdateDriver(viewModel: .init())
self.userDriver = UpdateDriver(
viewModel: .init(),
hostBundle: hostBundle)
self.updater = SPUUpdater(
hostBundle: hostBundle,
applicationBundle: hostBundle,