Here is small HOWTO release new version of Stratagus

You need some linux machine (ideally ubuntu) with:
 git, debhelper, devscripts, cmake, make, nsis, upx, gnupg

For windows installers you need:
 cmake toolchain file (see example)
 windows gcc cross compiler: g++-mingw-w64
 windows stratagus dependencies (from https://launchpad.net/~mingw-packages/+archive/ppa):
  libmikmod-mingw-w64-cross, libogg-mingw-w64-cross, libpng-mingw-w64-cross, libpthread-mingw-w64-cross, libsdl1.2-mingw-w64-cross,
  libtheora-mingw-w64-cross, libvorbis-mingw-w64-cross, lua5.1-mingw-w64-cross, tolua++-mingw-w64-cross, zlib-mingw-w64-cross

Download source code:
 git clone https://github.com/Wargus/stratagus && cd stratagus

Increase version in file:
 CMakeLists.txt

Update changelog in file:
 doc/changelog.html

Increase version and update changelog for debian:
 dch -i

Commit changes to git and create tag:
 git commit -a -m "Release version <version>"
 git tag <version>
 git push --tags origin master

Create orig tarball + sign:
 git clean -idx
 tar czvf ../stratagus_<version>.orig.tar.gz
 gpg --armor --sign --detach-sig ../stratagus_*.orig.tar.gz

Create ubuntu release packages:
 (happens automatically on commit in launchpad)

Create win32 installer + sign:
 rm -rf build && mkdir build && cd build
 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/path/to/win32/toolchain/file -DENABLE_STATIC=ON -DENABLE_NSIS=ON -DENABLE_UPX=ON -DENABLE_STRIP=ON ..
 make && mv Stratagus-*.exe ../../ && cd ..
 gpg --armor --sign --detach-sig ../Stratagus-*.exe

Create win64 installer + sign:
 rm -rf build && mkdir build && cd build
 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/path/to/win64/toolchain/file -DENABLE_STATIC=ON -DENABLE_NSIS=ON -DENABLE_STRIP=ON ..
 make && mv Stratagus-*-x86_64.exe ../../ && cd ..
 gpg --armor --sign --detach-sig ../Stratagus-*-x86_64.exe

Create new release on github, upload windows installers with signatures:
 via web interface on https://github.com/Wargus/stratagus/releases

Upload ubuntu dsc packages to stratagus PPA:
 dput ppa:stratagus/ppa ../stratagus_*ubuntu*_source.changes

Example of cmake win32 toolchain file for windows:
 SET(CMAKE_SYSTEM_NAME Windows)
 SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
 SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
 SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
 SET(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32)
 SET(CMAKE_PREFIX_PATH /usr/i686-w64-mingw32)
 SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
 SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
 SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
