unmojang / FjordLauncher

Prism Launcher fork with support for alternative auth servers
GNU General Public License v3.0
96 stars 18 forks source link

Fetch CurseForge API key from official files #13

Closed evan-goode closed 5 months ago

evan-goode commented 5 months ago

Instead of fetching the CurseForge API key from PolyMC's server, fetch it from the files of the CurseForge app, mirrored by archive.org. We can do this without downloading the entire 100MiB+ application by range-requesting the specific DEFLATE block where the key is and decompressing just that block.

lemonzest79 commented 5 months ago

When running from GUI no contents appear in the Curseforge instance creation menu, when ran from a CLI getting access denied from Curseforge with this key, the older key pulled from PolyMC works fine still

evan-goode commented 5 months ago

Well that was difficult, but I think it's fixed now. It's now downloading the same key as served by PolyMC.

lemonzest79 commented 5 months ago

Works for me, tried importing a few curseforge modpack they all worked, removed the key, it revoked access, added it back with the menu button and it regained access so seems working