[AltServer] Uses Sparkle staging URL for STAGING builds

This commit is contained in:
Riley Testut
2022-02-09 13:46:03 -08:00
parent fefa8b174d
commit 5e3e8f2809

View File

@@ -12,6 +12,7 @@ import UserNotifications
import AltSign
import LaunchAtLogin
import Sparkle
#if STAGING
private let altstoreAppURL = URL(string: "https://f000.backblazeb2.com/file/altstore-staging/altstore.ipa")!
@@ -62,6 +63,10 @@ class AppDelegate: NSObject, NSApplicationDelegate {
ServerConnectionManager.shared.start()
ALTDeviceManager.shared.start()
#if STAGING
SUUpdater.shared().feedURL = URL(string: "https://altstore.io/altserver/sparkle-macos-staging.xml")
#endif
let item = NSStatusBar.system.statusItem(withLength: -1)
item.menu = self.appMenu
item.button?.image = NSImage(named: "MenuBarIcon")