From ff28f6fa8fc46d36ec52c515bf0dc09dd7ccebf3 Mon Sep 17 00:00:00 2001 From: Spidy123222 <64176728+Spidy123222@users.noreply.github.com> Date: Mon, 31 Mar 2025 18:32:52 -0700 Subject: [PATCH] Add files via upload Signed-off-by: Spidy123222 <64176728+Spidy123222@users.noreply.github.com> --- AltStore/Managing Apps/AppManager.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AltStore/Managing Apps/AppManager.swift b/AltStore/Managing Apps/AppManager.swift index 3728e8c8..1fcd9309 100644 --- a/AltStore/Managing Apps/AppManager.swift +++ b/AltStore/Managing Apps/AppManager.swift @@ -954,6 +954,11 @@ 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) @@ -993,6 +998,7 @@ extension AppManager case .failure(let error): completionHandler(.failure(error)) case .success(let installedApp): completionHandler(.success(installedApp)) } + UIApplication.shared.open(shortcutURLon, options: [:], completionHandler: nil) } installOperation.addDependency(sendAppOperation)