1Here is small HOWTO release new version of Stratagus 2 3You need some linux machine (ideally ubuntu) with: 4 git, debhelper, devscripts, cmake, make, nsis, upx, gnupg 5 6For windows installers you need: 7 cmake toolchain file (see example) 8 windows gcc cross compiler: g++-mingw-w64 9 windows stratagus dependencies (from https://launchpad.net/~mingw-packages/+archive/ppa): 10 libmikmod-mingw-w64-cross, libogg-mingw-w64-cross, libpng-mingw-w64-cross, libpthread-mingw-w64-cross, libsdl1.2-mingw-w64-cross, 11 libtheora-mingw-w64-cross, libvorbis-mingw-w64-cross, lua5.1-mingw-w64-cross, tolua++-mingw-w64-cross, zlib-mingw-w64-cross 12 13Download source code: 14 git clone https://github.com/Wargus/stratagus && cd stratagus 15 16Increase version in file: 17 CMakeLists.txt 18 19Update changelog in file: 20 doc/changelog.html 21 22Increase version and update changelog for debian: 23 dch -i 24 25Commit changes to git and create tag: 26 git commit -a -m "Release version <version>" 27 git tag <version> 28 git push --tags origin master 29 30Create orig tarball + sign: 31 git clean -idx 32 tar czvf ../stratagus_<version>.orig.tar.gz 33 gpg --armor --sign --detach-sig ../stratagus_*.orig.tar.gz 34 35Create ubuntu release packages: 36 (happens automatically on commit in launchpad) 37 38Create win32 installer + sign: 39 rm -rf build && mkdir build && cd build 40 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 .. 41 make && mv Stratagus-*.exe ../../ && cd .. 42 gpg --armor --sign --detach-sig ../Stratagus-*.exe 43 44Create win64 installer + sign: 45 rm -rf build && mkdir build && cd build 46 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/path/to/win64/toolchain/file -DENABLE_STATIC=ON -DENABLE_NSIS=ON -DENABLE_STRIP=ON .. 47 make && mv Stratagus-*-x86_64.exe ../../ && cd .. 48 gpg --armor --sign --detach-sig ../Stratagus-*-x86_64.exe 49 50Create new release on github, upload windows installers with signatures: 51 via web interface on https://github.com/Wargus/stratagus/releases 52 53Upload ubuntu dsc packages to stratagus PPA: 54 dput ppa:stratagus/ppa ../stratagus_*ubuntu*_source.changes 55 56Example of cmake win32 toolchain file for windows: 57 SET(CMAKE_SYSTEM_NAME Windows) 58 SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc) 59 SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++) 60 SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres) 61 SET(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32) 62 SET(CMAKE_PREFIX_PATH /usr/i686-w64-mingw32) 63 SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 64 SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 65 SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 66