Skip to content

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

@notnotmelon

Description

@notnotmelon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions