This is a small python (3.4 and up) script that generates the manifest files that GoD-Tony's updater parses each time it looks for updates. It should help scripters that use some kind if CI to deploy their plugins faster and avoid WET code because all file paths are generated based on the files inside ``sm_path`` and ``mod_path`.
Notes:
You'll need to install the vdf package for python, by running "pip install vdf".
Thanks to pathlib, Windows and POSIX paths are compatible, no need to worry about \ or /.
The "sourcemod" folder is ignored while searching files inside ``mod_path``. On code
Files inside the "scripting" folder are considered "source" files. On code
PS C:\Users\fakui\Seafile\Programming\sm_scripting\sp_buildtools\tony_updater> python.exe .\updater_script_gen.py --help
usage: updater_script_gen.py [-h] [--sm_path SM_PATH] [--version VERSION]
[--mod_path [MOD_PATH]]
[--notes NOTES [NOTES ...]] [--output OUTPUT]
Creates an update script for GoD-Tony's sourcemod plugin updater.
optional arguments:
-h, --help show this help message and exit
--sm_path SM_PATH The path to the root sourcemod folder that you bundle
with your plugin
--version VERSION The current version of the plugin
--mod_path [MOD_PATH]
The path to the mod root folder
--notes NOTES [NOTES ...]
Notes to add to the update scirpt, usually a brief
changelog
--output OUTPUT Output file
If you input someting like this you sould get something that looks like this.