mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-19 03:33:36 +01:00
Move to SendAppOperation
This commit is contained in:
@@ -959,10 +959,6 @@ extension AppManager
|
|||||||
|
|
||||||
let installationProgress = Progress.discreteProgress(totalUnitCount: 100)
|
let installationProgress = Progress.discreteProgress(totalUnitCount: 100)
|
||||||
installationProgress.addChild(sendAppOperation.progress, withPendingUnitCount: 40)
|
installationProgress.addChild(sendAppOperation.progress, withPendingUnitCount: 40)
|
||||||
let shortcutURLoff = URL(string: "shortcuts://run-shortcut?name=TurnOffData")!
|
|
||||||
let shortcutURLon = URL(string: "shortcuts://run-shortcut?name=TurnOnData")!
|
|
||||||
|
|
||||||
UIApplication.shared.open(shortcutURLoff, options: [:], completionHandler: nil)
|
|
||||||
installationProgress.addChild(installOperation.progress, withPendingUnitCount: 60)
|
installationProgress.addChild(installOperation.progress, withPendingUnitCount: 60)
|
||||||
|
|
||||||
/* Patch */
|
/* Patch */
|
||||||
|
|||||||
@@ -41,9 +41,13 @@ final class SendAppOperation: ResultOperation<()>
|
|||||||
}
|
}
|
||||||
|
|
||||||
// self.context.resignedApp.fileURL points to the app bundle, but we want the .ipa.
|
// self.context.resignedApp.fileURL points to the app bundle, but we want the .ipa.
|
||||||
|
let shortcutURLoff = URL(string: "shortcuts://run-shortcut?name=TurnOffData")!
|
||||||
|
let shortcutURLon = URL(string: "shortcuts://run-shortcut?name=TurnOnData")!
|
||||||
|
|
||||||
|
UIApplication.shared.open(shortcutURLoff, options: [:], completionHandler: nil)
|
||||||
|
|
||||||
let app = AnyApp(name: resignedApp.name, bundleIdentifier: self.context.bundleIdentifier, url: resignedApp.fileURL, storeApp: nil)
|
let app = AnyApp(name: resignedApp.name, bundleIdentifier: self.context.bundleIdentifier, url: resignedApp.fileURL, storeApp: nil)
|
||||||
let fileURL = InstalledApp.refreshedIPAURL(for: app)
|
let fileURL = InstalledApp.refreshedIPAURL(for: app)
|
||||||
|
|
||||||
print("AFC App `fileURL`: \(fileURL.absoluteString)")
|
print("AFC App `fileURL`: \(fileURL.absoluteString)")
|
||||||
|
|
||||||
if let data = NSData(contentsOf: fileURL) {
|
if let data = NSData(contentsOf: fileURL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user