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