mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Attempt a million
This commit is contained in:
@@ -954,11 +954,12 @@ extension AppManager
|
||||
context.resignedApp = resignedApp
|
||||
|
||||
let patchAppOperation = PatchAppOperation(context: context)
|
||||
|
||||
/*
|
||||
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 sendAppOperation = SendAppOperation(context: context)
|
||||
let installOperation = InstallAppOperation(context: context)
|
||||
|
||||
@@ -998,7 +999,7 @@ extension AppManager
|
||||
case .failure(let error): completionHandler(.failure(error))
|
||||
case .success(let installedApp): completionHandler(.success(installedApp))
|
||||
}
|
||||
UIApplication.shared.open(shortcutURLon, options: [:], completionHandler: nil)
|
||||
//UIApplication.shared.open(shortcutURLon, options: [:], completionHandler: nil)
|
||||
}
|
||||
installOperation.addDependency(sendAppOperation)
|
||||
|
||||
|
||||
@@ -212,7 +212,10 @@ private extension PatchAppOperation
|
||||
#if targetEnvironment(simulator)
|
||||
throw PatchAppError.unsupportedOperatingSystemVersion(ProcessInfo.processInfo.operatingSystemVersion)
|
||||
#else
|
||||
|
||||
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 spotlightPath = "Applications/Spotlight.app/Spotlight"
|
||||
let spotlightFileURL = self.patchDirectory.appendingPathComponent(spotlightPath)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user