[AltStore] Fixes not updating app’s version number when updating

This commit is contained in:
Riley Testut
2019-07-31 15:19:27 -07:00
parent e77b35f0db
commit e81dc905c9
2 changed files with 4 additions and 0 deletions

View File

@@ -152,6 +152,8 @@ private extension DatabaseManager
installedApp.storeApp = storeApp
}
installedApp.version = localApp.version
let fileURL = installedApp.fileURL
if !FileManager.default.fileExists(atPath: fileURL.path)

View File

@@ -57,6 +57,8 @@ class InstallAppOperation: ResultOperation<InstalledApp>
installedApp = InstalledApp(resignedApp: resignedApp, originalBundleIdentifier: self.context.bundleIdentifier, context: backgroundContext)
}
installedApp.version = resignedApp.version
if let profile = resignedApp.provisioningProfile
{
installedApp.refreshedDate = profile.creationDate