Hi,
Script for creating new Github Release with optional assets.
Download: https://github.com/InfinityMods/ModRelease/archive/master.zip
Features:
Requirements:
Installation:
Usage:
Script for creating new Github Release with optional assets.
Download: https://github.com/InfinityMods/ModRelease/archive/master.zip
Features:
- cross-platform, single code for Windows, macOS and Linux
- prevent creating new release if the same release already exist
- prevent creating new release if there are uncommitted file modifications
- checking of the mod "VERSION" keyword, prevent creating "2.1.3" release when you mod version is "2.1.2"
- release description can be edited before creating new release
- initial release description is generated from commit messages between the new release and previous release
Requirements:
- basic understanding of Git and Github
- Github account
- Github repository where you store you mod must be cloned locally (not downloaded as zip!)
- Windows 10 - Github Desktop
- Windows 7/8.1 - Github Desktop and either .NET Framework 4.5.2 (or above) and Powershell 5.1 or Powershell 6
- macOS - Github Desktop and Powershell 6
- Linux - Github Desktop and Powershell 6
Installation:
- Download and extract this repository, move everything from 'ModRelease-master' folder directly into the folder where you keep all cloned top-level mod folders.
- Open https://github.com/settings/tokens, and create "personal access token" with "public_repo" privilege, it's not you password, you can revoke it at any time, more info here.
- Save it to "#ModRelease-Github-Key-Example.txt" file and rename it to #ModRelease-Github-Key.txt
- Put #ModRelease.bat inside top-level directory of the mod's cloned Github repository, use the included mod example as reference.
Usage:
- Assuming that all mod files are ready for new release, increase mod version inside mod file and mod readme.
- Create new commit. Do not create new tag for release, it will be created automatically as 'mod version' and pushed into online repository.
optional step: create mod packages (release assets), wait until all packages are created with proper names:ModID-Version.exe ModID-Version.iemod ModID-Version.zip - Run #ModRelease.bat (Win) | #ModRelease.command (Mac) | #ModRelease.bat (Lin) and follow further instructions.

.jpg)








