mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-08 22:33:26 +01:00
[AltStore] Fixes not updating app’s version number when updating
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user