mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-20 04:03:26 +01:00
[AltServer] Adds STAGING flag to conditionally download Delta version
This commit is contained in:
@@ -9,6 +9,12 @@
|
|||||||
import Cocoa
|
import Cocoa
|
||||||
import UserNotifications
|
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
|
enum InstallError: LocalizedError
|
||||||
{
|
{
|
||||||
case cancelled
|
case cancelled
|
||||||
@@ -167,8 +173,6 @@ extension ALTDeviceManager
|
|||||||
|
|
||||||
func downloadApp(completionHandler: @escaping (Result<URL, Error>) -> Void)
|
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
|
let downloadTask = URLSession.shared.downloadTask(with: appURL) { (fileURL, response, error) in
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user