Use a custom default source for SideStore (#71)

* Adds a Custom default source and allows Updating app via ota.

Co-authored-by: Spidy123222
This commit is contained in:
Joshua Laymon
2022-10-18 01:10:18 -07:00
committed by GitHub
parent e70c712020
commit fc3f83231c
4 changed files with 91 additions and 12 deletions

View File

@@ -11,25 +11,25 @@ import CoreData
public extension Source
{
#if ALPHA
static let altStoreIdentifier = "com.rileytestut.AltStore.Alpha"
static let altStoreIdentifier = "com.SideStore.AltStore"
#else
static let altStoreIdentifier = "com.rileytestut.AltStore"
static let altStoreIdentifier = "com.SideStore.AltStore"
#endif
#if STAGING
#if ALPHA
static let altStoreSourceURL = URL(string: "https://f000.backblazeb2.com/file/altstore-staging/sources/alpha/apps-alpha-staging.json")!
static let altStoreSourceURL = URL(string: "https://raw.githubusercontent.com/SideStore/SideStore/develop/app.json")!
#else
static let altStoreSourceURL = URL(string: "https://f000.backblazeb2.com/file/altstore-staging/apps-staging.json")!
static let altStoreSourceURL = URL(string: "https://raw.githubusercontent.com/SideStore/SideStore/develop/app.json")!
#endif
#else
#if ALPHA
static let altStoreSourceURL = URL(string: "https://alpha.altstore.io/")!
static let altStoreSourceURL = URL(string: "https://raw.githubusercontent.com/SideStore/SideStore/develop/app.json")!
#else
static let altStoreSourceURL = URL(string: "https://apps.altstore.io/")!
static let altStoreSourceURL = URL(string: "https://raw.githubusercontent.com/SideStore/SideStore/develop/app.json")!
#endif
#endif
@@ -157,7 +157,7 @@ public extension Source
class func makeAltStoreSource(in context: NSManagedObjectContext) -> Source
{
let source = Source(context: context)
source.name = "AltStore"
source.name = "SideStore Offical"
source.identifier = Source.altStoreIdentifier
source.sourceURL = Source.altStoreSourceURL

View File

@@ -15,11 +15,11 @@ import AltSign
public extension StoreApp
{
#if ALPHA
static let altstoreAppID = "com.rileytestut.AltStore.Alpha"
static let altstoreAppID = "com.SideStore.AltStore"
#elseif BETA
static let altstoreAppID = "com.rileytestut.AltStore.Beta"
static let altstoreAppID = "com.SideStore.AltStore"
#else
static let altstoreAppID = "com.rileytestut.AltStore"
static let altstoreAppID = "com.SideStore.AltStore"
#endif
static let dolphinAppID = "me.oatmealdome.dolphinios-njb"
@@ -249,7 +249,7 @@ public extension StoreApp
let app = StoreApp(context: context)
app.name = "AltStore"
app.bundleIdentifier = StoreApp.altstoreAppID
app.developerName = "Riley Testut"
app.developerName = "Side Team"
app.localizedDescription = "AltStore is an alternative App Store."
app.iconURL = URL(string: "https://user-images.githubusercontent.com/705880/63392210-540c5980-c37b-11e9-968c-8742fc68ab2e.png")!
app.screenshotURLs = []