Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write a shell & bash script to help with creating .zip mods for portal upload #1

Open
notnotmelon opened this issue Aug 12, 2024 · 0 comments

Comments

@notnotmelon
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant