Source packwiz mods from Modrinth
Madis0 opened this issue ยท 1 comments
I should start sourcing packwiz mods from modrinth to boost their downloads and improve reliability (because CF goes down often).
While packwiz plans to add a command for that, mmc-export could also be used for that, as evident by my test.
The task itself is changing CurseForge to Packwiz-Modrinth.py code to use mmc-export instead of packwiz itself:
- Import MultiMC zip to mmc-export
- Export it as packwiz zip
- Extract the packwiz zip to the correct location
- Delete the packwiz zip
In code it could be done similarly to mmc_export_modrinth_export
: run only when the variable is set, execute a similar command in the system, then do copy/move/delete actions as needed. Tests are in releases, marked as x.x.x-pw.x
--scheme
can be used to get a consistent filename for easy unzipping.