Updates most InstalledApp/Extension properties when refreshing apps

This commit is contained in:
Riley Testut
2020-01-24 15:03:16 -08:00
parent 74f44ddfe8
commit 01e95e1baf
4 changed files with 47 additions and 43 deletions

View File

@@ -168,7 +168,6 @@ private extension DatabaseManager
{
installedApp = InstalledApp(resignedApp: localApp, originalBundleIdentifier: StoreApp.altstoreAppID, context: context)
installedApp.storeApp = storeApp
installedApp.installedDate = Date()
}
let fileURL = installedApp.fileURL
@@ -195,13 +194,7 @@ private extension DatabaseManager
}
// Must go after comparing versions to see if we need to update our cached AltStore app bundle.
installedApp.version = localApp.version
if let provisioningProfile = localApp.provisioningProfile
{
installedApp.refreshedDate = provisioningProfile.creationDate
installedApp.expirationDate = provisioningProfile.expirationDate
}
installedApp.update(resignedApp: localApp)
do
{