mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-19 11:43:24 +01:00
[AltServer] Uses Sparkle staging URL for STAGING builds
This commit is contained in:
@@ -12,6 +12,7 @@ import UserNotifications
|
|||||||
import AltSign
|
import AltSign
|
||||||
|
|
||||||
import LaunchAtLogin
|
import LaunchAtLogin
|
||||||
|
import Sparkle
|
||||||
|
|
||||||
#if STAGING
|
#if STAGING
|
||||||
private let altstoreAppURL = URL(string: "https://f000.backblazeb2.com/file/altstore-staging/altstore.ipa")!
|
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()
|
ServerConnectionManager.shared.start()
|
||||||
ALTDeviceManager.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)
|
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")
|
||||||
|
|||||||
Reference in New Issue
Block a user