Currently it is quite a manual process to zip together mods for release. This process must be automated via both a shell and bash script.
These scripts will be placed in the rivets-mod-template repo.
Both scripts should take the following steps:
- run cargo build
- extract the artifact into the mod's root directory
- run git archive to convert the unzipped mod into a zip mod
should be a similar command to
git archive --format zip --prefix [YOUR-MOD-NAME]/ --worktree-attributes --output [YOUR-MOD-NAME]_[VERSION].zip HEAD
note that .rs files and the target folder must be excluded from ending up in the archive via .gitattributes or similar.