-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In-place pack mod updating #138
Conversation
Note, it will not catch custom versions of jars in the pack (like a |
First thing I have really done in python, so please give any criticism. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems reasonable enough
Gonna hold off until the other PR is merged so I can make logging changes here as well |
This is mainly for me, but it could be useful to other devs who update to nightly often.
Currently, this is mods only. Configs are not touched.
generate_nightly
will need to be ran before handSide can be one of: CLIENT, SERVER, CLIENT_JAVA9, SERVER_JAVA9
The
--use-symlink
flag can be supplied if you want mods to be symlinked from the cache (only on posix systems)An example to update the mods on my server:
poetry run python -m gtnh.cli.update_pack_inplace SERVER_JAVA9 "/mnt/rootshare/appdata/minecraft/gtnh/"
and on my local computer:
poetry run python -m gtnh.cli.update_pack_inplace CLIENT_JAVA9 "/mnt/games/Minecraft/Instances/GTNH Nightly/.minecraft/"
Quotes are only needed if the path contains spaces which can be escaped instead if you want.
To have certain mods excluded from the local pack, create a
.inplace_mod_exclusions
file in the root of the project and include the mod names from gtnh-assets.jsonExample (I use RTG + CC, ModernControlling, and Xaero's)