From 2566bfa2ed003365f98295eb9dbee9b4bbdf4c77 Mon Sep 17 00:00:00 2001 From: Spidy123222 <64176728+Spidy123222@users.noreply.github.com> Date: Wed, 14 Sep 2022 13:24:04 -0700 Subject: [PATCH] Make Sidestore use its own trustedapps json (#58) * Add trusted apps list json Signed-off-by: Spidy123222 <64176728+Spidy123222@users.noreply.github.com> * Force to use apps.json Signed-off-by: Spidy123222 <64176728+Spidy123222@users.noreply.github.com> * Rename apps.json to trustedapps.json Signed-off-by: Spidy123222 <64176728+Spidy123222@users.noreply.github.com> * Redo trustedlink Signed-off-by: Spidy123222 <64176728+Spidy123222@users.noreply.github.com> * Update FetchTrustedSourcesOperation.swift Signed-off-by: Spidy123222 <64176728+Spidy123222@users.noreply.github.com> * Add provenance-emu source Signed-off-by: Spidy123222 <64176728+Spidy123222@users.noreply.github.com> Signed-off-by: Spidy123222 <64176728+Spidy123222@users.noreply.github.com> --- .../FetchTrustedSourcesOperation.swift | 4 ++-- trustedapps.json | 24 +++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 trustedapps.json diff --git a/AltStore/Operations/FetchTrustedSourcesOperation.swift b/AltStore/Operations/FetchTrustedSourcesOperation.swift index 0cf51faa..1ef8c3eb 100644 --- a/AltStore/Operations/FetchTrustedSourcesOperation.swift +++ b/AltStore/Operations/FetchTrustedSourcesOperation.swift @@ -11,9 +11,9 @@ import Foundation private extension URL { #if STAGING - static let trustedSources = URL(string: "https://f000.backblazeb2.com/file/altstore-staging/altstore/trustedsources.json")! + static let trustedSources = URL(string: "https://raw.githubusercontent.com/SideStore/SideStore/develop/trustedapps.json")! #else - static let trustedSources = URL(string: "https://cdn.altstore.io/file/altstore/altstore/trustedsources.json")! + static let trustedSources = URL(string: "https://raw.githubusercontent.com/SideStore/SideStore/develop/trustedapps.json")! #endif } diff --git a/trustedapps.json b/trustedapps.json new file mode 100644 index 00000000..f637bff4 --- /dev/null +++ b/trustedapps.json @@ -0,0 +1,24 @@ +{ + "version": 1, + "sources": [ + { + "identifier": "io.altstore.example" + }, + { + "identifier": "com.utmapp.repos.UTM", + "sourceURL": "https://alt.getutm.app" + }, + { + "identifier": "com.flyinghead.source", + "sourceURL": "https://flyinghead.github.io/flycast-builds/altstore.json" + }, + { + "identifier": "me.oatmealdome.altstore", + "sourceURL": "https://altstore.oatmealdome.me" + }, + { + "identifier": "org.provenance-emu.provenance", + "sourceURL": "https://provenance-emu.com/apps.json" + } + ] +}