Release channel support

- Show SideStore in Browse if it's not from the current SideStore source
- Change SideStore source URL and source ID based on if beta and nightly are in the version string
- Use StoreApp name for InstalledApp name to allow for source-specified name to show up in My Apps
This commit is contained in:
naturecodevoid
2023-01-23 07:59:09 -08:00
committed by Spidy123222
parent 9f7d4dee49
commit 8f5b56f717
4 changed files with 36 additions and 24 deletions

View File

@@ -222,7 +222,7 @@ private extension DatabaseManager
let storeApp: StoreApp
if let app = StoreApp.first(satisfying: NSPredicate(format: "%K == %@", #keyPath(StoreApp.bundleIdentifier), StoreApp.altstoreAppID), in: context)
if let app = StoreApp.first(satisfying: NSPredicate(format: "%K == %@ AND %K == %@", #keyPath(StoreApp.bundleIdentifier), StoreApp.altstoreAppID, #keyPath(StoreApp.sourceIdentifier), Source.altStoreIdentifier), in: context)
{
storeApp = app
}