2020-04-17 17:12:57 +00:00
|
|
|
Releasing Terminator
|
|
|
|
====================
|
|
|
|
|
|
|
|
Make sure you have the latest master branch, no un-committed changes, and are ready to release that state.
|
2020-04-18 11:00:23 +00:00
|
|
|
|
2020-04-17 17:12:57 +00:00
|
|
|
```
|
|
|
|
VERSION=1.92
|
|
|
|
```
|
|
|
|
|
2020-04-18 11:00:23 +00:00
|
|
|
## Set version in Python
|
2020-04-17 17:12:57 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
sed -i "s/APP_VERSION =.*/APP_VERSION = '${VERSION}'/" terminatorlib/version.py
|
|
|
|
```
|
|
|
|
|
|
|
|
## Generate the changelog
|
|
|
|
|
|
|
|
For the changelog we are using [github-changelog-generator](https://github.com/github-changelog-generator/github-changelog-generator)
|
|
|
|
|
|
|
|
```
|
2020-04-18 11:00:23 +00:00
|
|
|
github_changelog_generator --future-release "v$VERSION"
|
2020-04-19 12:39:41 +00:00
|
|
|
# Fix CHANGELOG CRLF
|
|
|
|
dos2unix CHANGELOG.md
|
2020-04-17 17:12:57 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Check and review CHANGELOG.md for the expected result.
|
|
|
|
|
2020-05-09 18:41:18 +00:00
|
|
|
## Update AUTHORS
|
|
|
|
|
|
|
|
This will make sure we mention everyone that has contributed to Terminator.
|
|
|
|
|
|
|
|
```
|
|
|
|
git log --use-mailmap | grep ^Author: | cut -f2- -d' ' | grep -v ^Launchpad | sort | uniq | sed 's/^/* /' | cat .authors.header - .authors.footer > AUTHORS
|
|
|
|
```
|
|
|
|
|
|
|
|
Make sure to review the list, and update `.mailmap` when it is necessary.
|
|
|
|
|
2020-04-17 17:12:57 +00:00
|
|
|
## Git Tag
|
|
|
|
|
|
|
|
Commit these changes to the "master" branch:
|
|
|
|
|
|
|
|
```
|
|
|
|
git add terminatorlib/version.py CHANGELOG.md RELEASE.md
|
|
|
|
git commit -v -m "Release version $VERSION"
|
|
|
|
git push origin master
|
|
|
|
```
|
|
|
|
|
|
|
|
And tag it with a signed tag:
|
|
|
|
|
|
|
|
```
|
|
|
|
git tag -s -m "Version $VERSION" v$VERSION
|
|
|
|
```
|
|
|
|
|
|
|
|
Push the tag.
|
|
|
|
|
|
|
|
```
|
|
|
|
git push --tags
|
|
|
|
```
|
|
|
|
|
|
|
|
## Signed artifacts
|
|
|
|
|
|
|
|
To provide a signed tarball for distributions we use sdist and gpg:
|
|
|
|
|
|
|
|
```
|
|
|
|
python setup.py sdist
|
|
|
|
gpg -u markus@lazyfrosch.de --armor \
|
|
|
|
--output dist/terminator-${VERSION}.tar.gz.asc \
|
|
|
|
--detach-sig dist/terminator-${VERSION}.tar.gz
|
|
|
|
```
|
|
|
|
|
|
|
|
## GitHub Release
|
|
|
|
|
|
|
|
Now update the tag to a release on GitHub, and add the artifacts:
|
|
|
|
https://github.com/gnome-terminator/terminator/releases
|
|
|
|
|
|
|
|
Make sure to add the proper section from CHANGELOG.md as description to the release.
|