Datapack "Building" Multiple Versions
This is kind of to do with datapacks, I know this is possible for mods, though I haven't touched modding since 1.16.5.
Before I get straight to the problem, I need to explain my situation a little.
I've got a GitHub repository with multiple datapacks within, just thought this would be a good way to do this as they're generally small datapacks.
Though now I have like 4 versions of each one of these datapacks and now and then I need to update them because I find an issue etc.
What I want to do is have a file that is in the root directory of each datapack which holds a version number, and output path for zip files.
I'm looking to create a script or find a way in how to zip up the datapack for the different versions of Minecraft, giving them a name of
Continue to help post(datapack-directory-name)-[minecraft-version]-<version-number>.zip
into a specified output folder.
I don't want the script to do zip up all datapacks when ran but more like all the sub folders of a specific datapack I want to "build" at the time.
How would I go about accomplish this?
Thanks in advance,
~Blood