Python script to update MMC instance.cfg
Madis0 opened this issue ยท 7 comments
- Get version number from
Desktop\Fabulously Optimized-x.x.x.zip
(aka CF file, I think that logic is already there in some python script I have) - Update version number on the file
(github repo path)\MultiMC\Fabulously Optimized x.y.z\instance.cfg
- Copy that file to
Desktop\Fabulously Optimized x.x.x.zip\Fabulously Optimized x.x.x\instance.cfg
Ideally that action should be in the file MultiMC to Git.py
instead of the current copy action in line 19.
The file paths should be variables similar to the ones I already have in scripts.
PRs are welcome.
Get version from the curseforge zip filename. Actually I guess there are multiple ways to get the name from, such as the multimc zip itself.
Yes, the manifest could be used for that, I'm not sure if it would just be any easier to do that.