From e5061acc20459ea47da42396f0d78edff9d2276e Mon Sep 17 00:00:00 2001 From: nythepegasus Date: Fri, 20 Oct 2023 21:42:36 -0400 Subject: [PATCH] Hardcode SideStore's URL scheme for now --- AltStore/Operations/BackupAppOperation.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/AltStore/Operations/BackupAppOperation.swift b/AltStore/Operations/BackupAppOperation.swift index d8a0829b..95f1b7de 100644 --- a/AltStore/Operations/BackupAppOperation.swift +++ b/AltStore/Operations/BackupAppOperation.swift @@ -55,9 +55,8 @@ class BackupAppOperation: ResultOperation let appName = installedApp.name self.appName = appName - guard let altstoreApp = InstalledApp.fetchAltStore(in: context) else { throw OperationError.appNotFound } - let altstoreOpenURL = altstoreApp.openAppURL - + let altstoreOpenURL = URL(string: "sidestore://")! + var returnURLComponents = URLComponents(url: altstoreOpenURL, resolvingAgainstBaseURL: false) returnURLComponents?.host = "appBackupResponse" guard let returnURL = returnURLComponents?.url else { throw OperationError.openAppFailed(name: appName) }