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 two latest tags
Requirements:
- Windows 10 - nothing
- Windows 7/8.1 - you need to install first .NET Framework 4.5.2 or above and then Powershell 5.1/6.
- macOS and Linux - Powershell 6
Installation:
- Download and extract this repository, move everything from 'ModRelease-master' folder directly into the folder where you keep all other 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 mod top-level directory, reffer to included mod example.
Usage:
- Increase mod version inside mod file.
- Create new commit. Do not create new tag for release, it will be created automatically from mod version.
- Optionally, create assets, wait until all packages are created with proper names:
ModId-$tp2Version.exe ModId-$tp2Version.iemp ModId-$tp2Version.zip - Run #ModRelease.bat and follow further instructions.







.jpg)



