mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-18 03:03:31 +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()
|
ALTDeviceManager.shared.start()
|
||||||
|
|
||||||
#if STAGING
|
#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
|
#else
|
||||||
SUUpdater.shared().feedURL = URL(string: "https://altstore.io/altserver/sparkle-macos.xml")
|
let feedURL: String = Bundle.main.infoDictionary!["SUFeedURL"]! as! String
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SUUpdater.shared().feedURL = URL(string: feedURL)
|
||||||
|
|
||||||
let item = NSStatusBar.system.statusItem(withLength: -1)
|
let item = NSStatusBar.system.statusItem(withLength: -1)
|
||||||
item.menu = self.appMenu
|
item.menu = self.appMenu
|
||||||
item.button?.image = NSImage(named: "MenuBarIcon")
|
item.button?.image = NSImage(named: "MenuBarIcon")
|
||||||
|
|||||||
@@ -32,5 +32,7 @@
|
|||||||
<string>NSApplication</string>
|
<string>NSApplication</string>
|
||||||
<key>SUFeedURL</key>
|
<key>SUFeedURL</key>
|
||||||
<string>https://altstore.io/altserver/sparkle-macos.xml</string>
|
<string>https://altstore.io/altserver/sparkle-macos.xml</string>
|
||||||
|
<key>SUFeedURL-Staging</key>
|
||||||
|
<string>https://altstore.io/altserver/sparkle-macos-staging.xml</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|||||||
Reference in New Issue
Block a user