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

@@ -1320,7 +1320,8 @@ private extension AppManager
if cacheApp
{
try FileManager.default.copyItem(at: app.fileURL, to: InstalledApp.fileURL(for: app), shouldReplace: true)
let updatedApp = AnyApp(from: app, bundleId: context.bundleIdentifier)
try FileManager.default.copyItem(at: app.fileURL, to: InstalledApp.fileURL(for: updatedApp), shouldReplace: true)
}
}
catch