From 5e3e8f28095ef3e800df8005d6c79e617b481570 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Wed, 9 Feb 2022 13:46:03 -0800 Subject: [PATCH] [AltServer] Uses Sparkle staging URL for STAGING builds --- AltServer/AppDelegate.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AltServer/AppDelegate.swift b/AltServer/AppDelegate.swift index 15210162..685b70fd 100644 --- a/AltServer/AppDelegate.swift +++ b/AltServer/AppDelegate.swift @@ -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")