-
Notifications
You must be signed in to change notification settings - Fork 17
/
update.py
345 lines (334 loc) · 13.5 KB
/
update.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
import logging
import re
from altparse import AltSourceManager, Parser, altsource_from_file
logging.basicConfig(level=logging.INFO, format="%(levelname)s: %(message)s")
########################
## QUANTUM SOURCE
########################
sources_data = [
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "emuPlace", "repo_name": "emuThreeDS", "include_pre": True},
"ids": ["com.antique.emuThreeDS"]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "rinsuki", "repo_name": "citra", "ver_parse": lambda x: re.sub('\D', '', x), "include_pre": True},
"ids": [{"net.rinsuki.slapps.citra.ci-artifact": "net.rinsuki.slapps.citra"}]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "ish-app", "repo_name": "ish", "prefer_date": True, "include_pre": False},
"ids": ["app.ish.iSH"]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "ginsudev", "repo_name": "WDBFontOverwrite"},
"ids": ["com.ginsudev.WDBFontOverwrite"]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "zhuowei", "repo_name": "WDBRemoveThreeAppLimit"},
"ids": ["com.worthdoingbadly.WDBRemoveThreeAppLimit"]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "vcmi", "repo_name": "vcmi"},
"ids": ["com.vcmi.VCMI"]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "lonkelle", "repo_name": "deltroid"},
"ids": ["com.rileytestut.Deltroid"]
},
{
"parser": Parser.ALTSOURCE,
"kwargs": {"filepath": "https://altstore.oatmealdome.me"},
"ids": ["me.oatmealdome.dolphinios-njb", "me.oatmealdome.DolphiniOS-njb-patreon-beta"]
},
{
"parser": Parser.ALTSOURCE,
"kwargs": {"filepath": "quarksource.json"},
"ids": ["com.libretro.RetroArchiOS11", "com.louisanslow.record", "org.scummvm.scummvm", "com.dry05.filzaescaped11-12", "com.virtualapplications.play"]
},
{
"parser": Parser.ALTSOURCE,
"kwargs": {"filepath": "https://provenance-emu.com/apps.json"},
"ids": ["org.provenance-emu.provenance"]
},
{
"parser": Parser.ALTSOURCE,
"kwargs": {"filepath": "https://theodyssey.dev/altstore/odysseysource.json"},
"ids": ["org.coolstar.odyssey"]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "Odyssey-Team", "repo_name": "Taurine"},
# "kwargs": {"filepath": "https://taurine.app/altstore/taurinestore.json"},
"ids": ["org.coolstar.taurine"]
},
{
"parser": Parser.ALTSOURCE,
"kwargs": {"filepath": "https://alt.getutm.app"},
"ids": ["com.utmapp.UTM", "com.utmapp.UTM-SE"]
},
{
"parser": Parser.ALTSOURCE,
"kwargs": {"filepath": "https://demo.altstore.io"},
"ids": ["com.rileytestut.GBA4iOS"]
},
{
"parser": Parser.ALTSOURCE,
# "kwargs": {"repo_author": "flyinghead", "repo_name": "flycast"},
"kwargs": {"filepath": "https://flyinghead.github.io/flycast-builds/altstore.json"},
"ids": ["com.flyinghead.Flycast"]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "iNDS-Team", "repo_name": "iNDS"},
"ids": ["net.nerd.iNDS"]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "yoshisuga", "repo_name": "MAME4iOS"},
"ids": ["com.example.mame4ios"]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "nspire-emus", "repo_name": "firebird"},
"ids": ["com.firebird.firebird-emu"]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "Wh0ba", "repo_name": "XPatcher"},
"ids": ["com.wh0ba.xpatcher"]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "litchie", "repo_name": "dospad"},
"ids": ["com.litchie.idosgames"]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "QuarkSources", "repo_name": "ppsspp-builder"},
"ids": ["org.ppsspp.ppsspp"]
},
{
"parser": Parser.UNC0VER,
"kwargs": {"url": "https://unc0ver.dev/releases.json"},
"ids": ["science.xnu.undecimus"]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "ianclawson", "repo_name": "Delta-iPac-Edition"},
"ids": ["com.ianclawson.DeltaPacEdition"]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "zydeco", "repo_name": "minivmac4ios"},
## This is the previous kwargs required when this application was distributed as a zipped .ipa file ##
# "kwargs": {"repo_author": "zydeco", "repo_name": "minivmac4ios", "asset_regex": r".*\.ipa\.zip", "extract_twice": True, "upload_ipa_repo": g_release},
"ids": ["net.namedfork.minivmac"]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "T-Pau", "repo_name": "Ready", "ver_parse": lambda x: x.replace("release-", "")},
"ids": ["at.spiderlab.c64"]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "yoshisuga", "repo_name": "activegs-ios"},
"ids": ["com.yoshisuga.activeGS"]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "zzanehip", "repo_name": "The-OldOS-Project", "ver_parse": lambda x: x.lstrip("v").replace("_", ".")},
"ids": ["com.zurac.OldOS"]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "n3d1117", "repo_name": "appdb", "prefer_date": True},
"ids": ["it.ned.appdb-ios"]
},
{
"parser": Parser.ALTSOURCE,
"kwargs": {"filepath": "https://pokemmo.eu/altstore/"},
"ids": ["eu.pokemmo.client", "eu.pokemmo.client.pts"]
},
{
"parser": Parser.ALTSOURCE,
"kwargs": {"filepath": "https://apps.litritt.com/"},
"ids": ["com.litritt.ignited"],
"ignoreNews": True
}
]
alternate_app_data = {
"eu.pokemmo.client": {
"beta": False
},
"com.flyinghead.Flycast": {
"localizedDescription": "Flycast is a multi-platform Sega Dreamcast, Naomi and Atomiswave emulator derived from reicast.\nInformation about configuration and supported features can be found on TheArcadeStriker's [flycast wiki](https://github.com/TheArcadeStriker/flycast-wiki/wiki).",
"screenshotURLs": ["https://i.imgur.com/47KjD5a.png", "https://i.imgur.com/MfhD1h1.png", "https://i.imgur.com/wO88IVP.png"]
},
"org.ppsspp.ppsspp": {
"tintColor": "#21486b",
"subtitle": "PlayStation Portable games on iOS.",
"screenshotURLs": [
"https://i.imgur.com/CWl6GgH.png",
"https://i.imgur.com/SxmN1M0.png",
"https://i.imgur.com/sGWgR6z.png",
"https://i.imgur.com/AFKTdmZ.png"
],
"iconURL": "https://i.imgur.com/JP0Fncv.png"
},
"com.rileytestut.GBA4iOS": {
"iconURL": "https://i.imgur.com/SBrqO9g.png",
"screenshotURLs": [
"https://i.imgur.com/L4H0yM3.png",
"https://i.imgur.com/UPGYLVr.png",
"https://i.imgur.com/sWpUAii.png",
"https://i.imgur.com/UwnDXRc.png"
]
},
"org.provenance-emu.provenance": {
"localizedDescription": "Provenance is a multi-system emulator frontend for a plethora of retro gaming systems. You can keep all your games in one place, display them with cover art, and play to your heart's content.\n\nSystems Supported:\n\n• Atari\n - 2600\n - 5200\n - 7800\n - Lynx\n - Jaguar\n• Bandai\n - WonderSwan / WonderSwan Color\n• NEC\n - PC Engine / TurboGrafx-16 (PCE/TG16)\n - PC Engine Super CD-ROM² System / TurboGrafx-CD\n - PC Engine SuperGrafx\n - PC-FX\n• Nintendo\n - Nintendo Entertainment System / Famicom (NES/FC)\n - Famicom Disk System\n - Super Nintendo Entertainment System / Super Famicom (SNES/SFC)\n - Game Boy / Game Boy Color (GB/GBC)\n - Virtual Boy\n - Game Boy Advance (GBA)\n - Pokémon mini\n• Sega\n - SG-1000\n - Master System\n - Genesis / Mega Drive\n - Game Gear\n - CD / MegaCD\n - 32X\n• SNK\n - Neo Geo Pocket / Neo Geo Pocket Color\n• Sony\n - PlayStation (PSX/PS1)",
"tintColor": "#1c7cf3"
}
}
src = altsource_from_file("quantumsource.json")
quantumsrc = AltSourceManager(src, sources_data)
try:
quantumsrc.update()
quantumsrc.update_hashes()
quantumsrc.alter_app_info(alternate_app_data)
quantumsrc.save()
quantumsrc.save(alternate_dir="dist/quantumsource.min.json",prettify=False)
except Exception as err:
logging.error(f"Unable to update {quantumsrc.src.name}.")
logging.error(f"{type(err).__name__}: {str(err)}")
########################
## ALTSTORE COMPLETE
########################
sources_data = [
{
"parser": Parser.ALTSOURCE,
"kwargs": {"filepath": "https://apps.altstore.io"},
"ids": ["com.rileytestut.AltStore", "com.rileytestut.AltStore.Beta", "com.rileytestut.Delta", "com.rileytestut.Delta.Beta", "com.rileytestut.Clip", "com.rileytestut.Clip.Beta"],
"getAllNews": True
},
{
"parser": Parser.ALTSOURCE,
"kwargs": {"filepath": "https://alpha.altstore.io"},
"ids": ["com.rileytestut.AltStore.Alpha", "com.rileytestut.Delta.Alpha"],
"getAllNews": True
}
]
alternate_app_data = {
"com.rileytestut.AltStore.Beta": {
"name": "AltStore (Beta)",
"beta": False
},
"com.rileytestut.Delta.Beta": {
"name": "Delta (Beta)",
"beta": False
},
"com.rileytestut.Clip.Beta": {
"name": "Clip (Beta)",
"beta": False
}
}
src = altsource_from_file("altstore-complete.json")
alt_complete = AltSourceManager(src, sources_data)
try:
alt_complete.update()
alt_complete.update_hashes()
alt_complete.alter_app_info(alternate_app_data)
alt_complete.save()
alt_complete.save(alternate_dir="dist/altstore-complete.min.json",prettify=False)
except Exception as err:
logging.error(f"Unable to update {alt_complete.src.name}.")
logging.error(f"{type(err).__name__}: {str(err)}")
########################
## QUANTUM SOURCE++
########################
sources_data = [
{
"parser": Parser.ALTSOURCE,
"kwargs": {"filepath": "quarksource++.json"},
"ids": ["com.crunchyroll.iphone", "com.duolingo.DuolingoMobile", "com.deezer.Deezer", "syto203.reddit.pp", "com.channelsapp.channels", "com.Lema.Michael.InstagramApp", "net.whatsapp.WhatsApp", "tv.twitch"]
},
{
"parser": Parser.ALTSOURCE,
"kwargs": {"filepath": "quarksource-cracked.json"},
"ids": ["com.grailr.CARROTweather", "com.wolframalpha.wolframalpha", "com.firecore.infuse", "com.stey", "com.luma-touch.LumaFusion"]
},
{
"parser": Parser.GITHUB,
#"kwargs": {"filepath": "https://altstore.enmity.app/"},
"kwargs": {"repo_author": "enmity-mod", "repo_name": "tweak", "asset_regex": r"(?!.*(d|D)ev.*).*\.ipa"},
"ids": ["com.hammerandchisel.discord"]
},
{
"parser": Parser.GITHUB,
#"kwargs": {"filepath": "https://9ani.app/api/altstore"},
"kwargs": {"repo_author": "SuperMarcus", "repo_name": "NineAnimator"},
"ids": ["com.marcuszhou.NineAnimator"]
},
{
"parser": Parser.GITHUB,
# ver_parse allows you to specify how to github tag should be processed before comparing to AltStore version tags
"kwargs": {"repo_author": "Paperback-iOS", "repo_name": "app", "ver_parse": lambda x: x.replace("-r", ".").lstrip("v")},
"ids": ["com.faizandurrani.paperback.ios"]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "tatsuz0u", "repo_name": "EhPanda"},
"ids": ["app.ehpanda"]
},
# {
# "parser": AltSourceParser,
# "kwargs": {"filepath": "https://raw.githubusercontent.com/ytjailed/ytjailed.github.io/main/apps.json"},
# "ids": ["com.google.ios.youtube", "com.atebits.Tweetie2"]
# },
{
"parser": Parser.ALTSOURCE,
"kwargs": {"filepath": "https://raw.githubusercontent.com/WuXu1/WuXu1.github.io/main/wuxu-complete-plus.json"},
"ids": ["com.spotify.client","com.errorerrorerror.animenow","jb.zini.tevi"],
# "com.toyopagroup.picaboo","com.microblink.PhotoMath","com.wuxulibs.uyouplus","AlexisBarreyat.BeReal","com.soundcloud.TouchApp","com.zhiliaoapp.musically"
"ignoreNews": True
},
{
"parser": Parser.ALTSOURCE,
"kwargs": {"filepath": "https://repos.yattee.stream/alt/apps.json"},
"ids": ["stream.yattee.app"]
},
{
"parser": Parser.ALTSOURCE,
"kwargs": {"filepath": "https://qnblackcat.github.io/AltStore/apps.json"},
"ids": ["com.burbn.instagram", "com.facebook.Facebook","com.reddit.Reddit"]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "StreamerApp", "repo_name": "Streamer"},
"ids": ["com.streamer.ios"]
},
{
"parser": Parser.GITHUB,
"kwargs": {"repo_author": "TherionRO", "repo_name": "YouTubeiVanced", "ver_parse": lambda x: x.lstrip("release")},
"ids": [{"com.google.ios.youtube": "com.google.ios.youtube.ivanced"}]
}
]
alternate_app_data = {
"none"
}
src = altsource_from_file("quantumsource++.json")
quantumsrc_plus = AltSourceManager(src, sources_data)
try:
quantumsrc_plus.update()
quantumsrc_plus.update_hashes()
#quantumsrc_plus.alter_app_info(alternate_app_data)
quantumsrc_plus.save()
quantumsrc_plus.save(alternate_dir="dist/quantumsource++.min.json",prettify=False)
except Exception as err:
logging.error(f"Unable to update {quantumsrc_plus.src.name}.")
logging.error(f"{type(err).__name__}: {str(err)}")