Attempt a million

This commit is contained in:
spidy123222
2025-03-31 20:44:43 -07:00
committed by Spidy123222
parent ff28f6fa8f
commit 4801f6e8f2
2 changed files with 7 additions and 3 deletions

View File

@@ -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)

View File

@@ -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)