This batch is designed for a global solution regarding Garry's mod addons synchronizing with the steam workshop and GitHub. It resides here so I will change in only one place if I need to update the publish algorithm.
This does not need to get installed. Works, therefore it exists.
Drag and drop a cloned GitHub addon folder onto the workshop_publish.bat
batch icon
- Configuration: The file
.workshop
resides inside the addon folder and defines what should be extracted, combined, matched to which steam ID
WSID
: Steam workshop ID. When missing the addon is automatically created and the ID is assigned on creation by steamworks. Write it down to this file in the repository clone itselfREPO
: This key contains the actual name in the GitHub repository. Mandatory!ADDN
: This key is used for the internal indexing ofdata/.../tools
. Mandatory!DATA
: This contains a list of directories that must be included in the new*.gma
- Copy-exclusion: The file
exclude_copy.txt
is used to tellxcopy
what to skip when generating the*.gma
file. When one is found indata/.../tools/workshop
the batch uses it instead as it is local for the repository
I am an automation engineer and I prefer to automate everything to have more personal time for myself. I am a person who values his time very much, so that I attempt to apply this to my daily life.