mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Throws error when adding marketplace source to non-marketplace AltStore (and vice versa)
This commit is contained in:
@@ -226,6 +226,12 @@ private extension FetchSourceOperation
|
||||
// All iPad screenshots MUST have an explicit size.
|
||||
guard screenshot.size != nil else { throw SourceError.missingScreenshotSize(for: screenshot, source: source) }
|
||||
}
|
||||
|
||||
#if MARKETPLACE
|
||||
guard app.marketplaceID != nil else { throw SourceError.marketplaceAppsRequired(source: source) }
|
||||
#else
|
||||
guard app.marketplaceID == nil else { throw SourceError.marketplaceAppsNotSupported(source: source) }
|
||||
#endif
|
||||
}
|
||||
|
||||
if let previousSourceID = self.$source.identifier
|
||||
|
||||
Reference in New Issue
Block a user