fix: cached app after download was not respecting overriden appId/bundleId

This commit is contained in:
mahee96
2026-02-02 11:28:48 +05:30
parent 30c03aad42
commit 255db2bac0
3 changed files with 11 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ final class DownloadAppOperation: ResultOperation<ALTApplication>
self.context = context
self.appName = app.name
self.bundleIdentifier = app.bundleIdentifier
self.bundleIdentifier = context.bundleIdentifier
self.sourceURL = app.url
self.destinationURL = destinationURL
@@ -77,7 +77,7 @@ final class DownloadAppOperation: ResultOperation<ALTApplication>
guard let latestVersion = storeApp.latestAvailableVersion else {
let failureReason = String(format: NSLocalizedString("The latest version of %@ could not be determined.", comment: ""), self.appName)
throw OperationError.unknown(failureReason: failureReason)
}
}
// Attempt to download latest _available_ version, and fall back to older versions if necessary.
appVersion = latestVersion