[AltServer] Adds STAGING flag to conditionally download Delta version

This commit is contained in:
Riley Testut
2019-11-13 11:35:37 -08:00
parent 2ceadeb908
commit 3ba1669e51

View File

@@ -9,6 +9,12 @@
import Cocoa
import UserNotifications
#if STAGING
private let appURL = URL(string: "https://f000.backblazeb2.com/file/altstore-staging/altstore.ipa")!
#else
private let appURL = URL(string: "https://f000.backblazeb2.com/file/altstore/altstore.ipa")!
#endif
enum InstallError: LocalizedError
{
case cancelled
@@ -167,8 +173,6 @@ extension ALTDeviceManager
func downloadApp(completionHandler: @escaping (Result<URL, Error>) -> Void)
{
let appURL = URL(string: "https://f000.backblazeb2.com/file/altstore/altstore.ipa")!
let downloadTask = URLSession.shared.downloadTask(with: appURL) { (fileURL, response, error) in
do
{