minetest-collection-manager

所属分类:Python编程
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2023-07-31 12:29:45
上 传 者sh-1993
说明:  矿试收集经理,WIP,
(minetest-collection-manager,WIP,)

文件列表:
.editorconfig (5915, 2023-08-19)
LICENSE (35149, 2023-08-19)
config_schema.json (2005, 2023-08-19)
main.py (14842, 2023-08-19)
requirements.txt (62, 2023-08-19)
screenshot.png (88951, 2023-08-19)
test_collection/ (0, 2023-08-19)
test_config.json (486, 2023-08-19)

# Minetest Collection Manager ![Screenshot](https://github.com/AFCMS/minetest-collection-manager/blob/master/screenshot.png) This project aims to help maintaining a collection of Minetest content (mods, games, etc) outside a Minetest user directory. It allows sharing this collection with multiple Minetest installs. You just need to provide a JSON config file containing which ContentDB and Git packages you want and an output folder and it will clone and update everything. It will be also able to sync with a specific folder with your own development stuff. **It is done with the idea that all the mods _must_ be updated when possible. It is suitable for personnal collection if you stay updated to latest Minetest versions, not for maintaining servers.** ## Installation Make sure to have Python3 and PIP installed (tested with version 3.10 and above) Go to the source code folder: ```shell pip3 install -r requirements.txt ``` Then you can run the script: ```shell python3 ./main.py --help ``` Usage exemples: ```shell # Create a configuration file # schema: the "$schema" JSON tag will be filled with the absolute path of the JSON schema (will not be updated if the script is moved around) # auto-sort: the entries in the config file are automatically sorted alphabetically when modified from CLI python3 ./main.py create-config ./config_file.json --schema --auto-sort # Add a package to the config file # The package is a mod and uses git # This only modify the config file, mod isn't downloaded # The availlable package categories are: "mods", "client_mods", "games", "texture_packs" python3 ./main.py add-package ./config_file.json mods git https://notabug.org/tenplus1/bonemeal # Add a package to the config file and sort the entries (useful when autosort disabled) python3 ./main.py add-package ./config_file.json mods git https://github.com/AFCMS/Subway-Miner --sort # Add a Git package to the config file and pull from specific branch python3 ./main.py add-package ./config_file.json mods git https://github.com/AFCMS/Subway-Miner --git-remote-branch=other_branch # Add a package from CDB (work with any up-to-date instances) python3 ./main.py add-package ./config_file.json mods cdb https://content.minetest.net/packages/davidthecreator/rangedweapons # Remove a package from the config file python ./main.py remove-package ./config.json mods git https://notabug.org/tenplus1/bonemeal # Update the collection folder with the config file # Packages that are present will be updated (including submodules for Git repositories) # Other packages will be cloned/downloaded # If any package has been removed from the config file, it's folder WONT BE REMOVED and should be done by hand python3 ./main.py update ./config_file.json ~/minetest_collection # Sync a collection folder with a Minetest installation # Will symlink folders from the collection folder to the Minetest installation # Will report folders that cannot be symlinked without removing existing folder python3 ./main.py sync ~/minetest_collection ~/.minetest # Sync a development folder with a collection folder # Will symlink folders from the development folder to the collection folder # You will need to run the sync command to update your Minetest installs python3 ./main.py sync-dev ~/minetest_collection ~/minetest_development ```

近期下载者

相关文件


收藏者