Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/folknor/factorio-release-script
Lua script for producing releases of github-hosted Factorio mods.
https://github.com/folknor/factorio-release-script
factorio lua
Last synced: 28 days ago
JSON representation
Lua script for producing releases of github-hosted Factorio mods.
- Host: GitHub
- URL: https://github.com/folknor/factorio-release-script
- Owner: folknor
- Created: 2017-08-11T16:25:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-20T22:32:46.000Z (almost 7 years ago)
- Last Synced: 2024-08-07T18:37:03.642Z (5 months ago)
- Topics: factorio, lua
- Language: Lua
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# factorio-release-script
*License: CC-BY-SA-3.0 https://creativecommons.org/licenses/by-sa/3.0/legalcode*Lua script for releasing github-hosted Factorio mods.
1. Checks raw.githubusercontent.com if you have the latest version of the script
2. Reads semver and modname from info.json
3. Automatically puts all git shortlogs into the GitHub Releases description
4. Tags "vX.Y.Z"
5. Releases that tag, ZIPs it, and uploads it to the GH releaseRequires https://github.com/zserge/luash, https://stedolan.github.io/jq/, and https://github.com/whiteinge/ok.sh
Please remember to set up ok.sh properly.Invoke the script like so:
```
./release.lua 0 0 0
```
Where the numbers represent how much you want to increase the semver, if at all. If you pass "0 0 0", the semver will not be increased. If you pass "1 0 0", major gets +1, and if you pass "0 312 0", the minor gets +312. This gets committed to info.json automatically.# Todo
* Obviously someone should actually make it take some real POSIX --flags in some fashion; there are probably 30 different ways of doing this in lua, none of which I particularly like :-P
* Get rid of most of the stdout from the commands and put out some proper progress text.
* Catch failes from git tag and friends, and maybe stop script execution.