mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-13 00:33:28 +01:00
refactor sparkle URLs to info.plist
Signed-off-by: Joseph Mattello <mail@joemattiello.com>
This commit is contained in:
@@ -66,11 +66,13 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
ALTDeviceManager.shared.start()
|
||||
|
||||
#if STAGING
|
||||
SUUpdater.shared().feedURL = URL(string: "https://altstore.io/altserver/sparkle-macos-staging.xml")
|
||||
let feedURL: String = Bundle.main.infoDictionary!["SUFeedURL"]! as! String
|
||||
#else
|
||||
SUUpdater.shared().feedURL = URL(string: "https://altstore.io/altserver/sparkle-macos.xml")
|
||||
let feedURL: String = Bundle.main.infoDictionary!["SUFeedURL"]! as! String
|
||||
#endif
|
||||
|
||||
SUUpdater.shared().feedURL = URL(string: feedURL)
|
||||
|
||||
let item = NSStatusBar.system.statusItem(withLength: -1)
|
||||
item.menu = self.appMenu
|
||||
item.button?.image = NSImage(named: "MenuBarIcon")
|
||||
|
||||
Reference in New Issue
Block a user