mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +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.storeApp = storeApp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
installedApp.version = localApp.version
|
||||||
|
|
||||||
let fileURL = installedApp.fileURL
|
let fileURL = installedApp.fileURL
|
||||||
|
|
||||||
if !FileManager.default.fileExists(atPath: fileURL.path)
|
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 = InstalledApp(resignedApp: resignedApp, originalBundleIdentifier: self.context.bundleIdentifier, context: backgroundContext)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
installedApp.version = resignedApp.version
|
||||||
|
|
||||||
if let profile = resignedApp.provisioningProfile
|
if let profile = resignedApp.provisioningProfile
|
||||||
{
|
{
|
||||||
installedApp.refreshedDate = profile.creationDate
|
installedApp.refreshedDate = profile.creationDate
|
||||||
|
|||||||
Reference in New Issue
Block a user