2013-02-05 04:27:02 -07:00
|
|
|
Here is small HOWTO release new version of Stratagus
|
|
|
|
|
|
|
|
You need some linux machine (ideally ubuntu) with:
|
2015-12-08 02:55:16 -07:00
|
|
|
git, debhelper, devscripts, cmake, make, nsis, upx, gnupg
|
2013-02-05 04:27:02 -07:00
|
|
|
|
|
|
|
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:
|
2015-12-08 02:55:16 -07:00
|
|
|
git clone https://github.com/Wargus/stratagus && cd stratagus
|
2013-02-05 04:27:02 -07:00
|
|
|
|
2013-02-05 15:41:35 -07:00
|
|
|
Increase version in file:
|
2013-02-05 04:27:02 -07:00
|
|
|
CMakeLists.txt
|
|
|
|
|
|
|
|
Update changelog in file:
|
|
|
|
doc/changelog.html
|
|
|
|
|
|
|
|
Increase version and update changelog for debian:
|
|
|
|
dch -i
|
|
|
|
|
2015-12-08 02:55:16 -07:00
|
|
|
Commit changes to git and create tag:
|
|
|
|
git commit -a -m "Release version <version>"
|
|
|
|
git tag <version>
|
|
|
|
git push --tags origin master
|
2013-02-05 04:27:02 -07:00
|
|
|
|
|
|
|
Create orig tarball + sign:
|
2015-12-08 02:55:16 -07:00
|
|
|
git clean -idx
|
|
|
|
tar czvf ../stratagus_<version>.orig.tar.gz
|
2013-02-05 04:27:02 -07:00
|
|
|
gpg --armor --sign --detach-sig ../stratagus_*.orig.tar.gz
|
|
|
|
|
2015-12-08 02:55:16 -07:00
|
|
|
Create ubuntu release packages:
|
|
|
|
(happens automatically on commit in launchpad)
|
2013-02-05 04:27:02 -07:00
|
|
|
|
|
|
|
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 ..
|
2013-02-08 06:37:24 -07:00
|
|
|
gpg --armor --sign --detach-sig ../Stratagus-*-x86_64.exe
|
2013-02-05 04:27:02 -07:00
|
|
|
|
2015-12-08 02:55:16 -07:00
|
|
|
Create new release on github, upload windows installers with signatures:
|
|
|
|
via web interface on https://github.com/Wargus/stratagus/releases
|
2013-02-05 04:27:02 -07:00
|
|
|
|
|
|
|
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)
|