From 4801f6e8f2cae67c50292e8834bbc49a4715a771 Mon Sep 17 00:00:00 2001 From: spidy123222 Date: Mon, 31 Mar 2025 20:44:43 -0700 Subject: [PATCH] Attempt a million --- AltStore/Managing Apps/AppManager.swift | 5 +++-- AltStore/Operations/Patch App/PatchAppOperation.swift | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/AltStore/Managing Apps/AppManager.swift b/AltStore/Managing Apps/AppManager.swift index 1fcd9309..d639d1a9 100644 --- a/AltStore/Managing Apps/AppManager.swift +++ b/AltStore/Managing Apps/AppManager.swift @@ -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) diff --git a/AltStore/Operations/Patch App/PatchAppOperation.swift b/AltStore/Operations/Patch App/PatchAppOperation.swift index 47f835dd..dab0fbad 100644 --- a/AltStore/Operations/Patch App/PatchAppOperation.swift +++ b/AltStore/Operations/Patch App/PatchAppOperation.swift @@ -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)