[AltStoreCore] Adds AppProtocol.storeApp

Simplifies retrieving the associated StoreApp for an app.
This commit is contained in:
Riley Testut
2023-11-29 15:15:36 -06:00
parent a1038d8850
commit 45da6b626f
5 changed files with 21 additions and 5 deletions

View File

@@ -110,7 +110,7 @@ class PatchAppOperation: ResultOperation<Void>
.flatMap { self.patch(resignedApp, withBinaryAt: $0) }
.tryMap { try FileManager.default.zipAppBundle(at: $0) }
.tryMap { (fileURL) in
let app = AnyApp(name: resignedApp.name, bundleIdentifier: self.context.bundleIdentifier, url: resignedApp.fileURL)
let app = AnyApp(name: resignedApp.name, bundleIdentifier: self.context.bundleIdentifier, url: resignedApp.fileURL, storeApp: nil)
let destinationURL = InstalledApp.refreshedIPAURL(for: app)
try FileManager.default.copyItem(at: fileURL, to: destinationURL, shouldReplace: true)