This commit is contained in:
Tim Felgentreff 2016-03-07 12:10:32 +01:00
commit 282212233f

View file

@ -1,17 +1,4 @@
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
Here is small HOWTO release new version of Stratagus (and also Wargus/War1gus/Stargus/...)
Increase version in file:
CMakeLists.txt
@ -27,39 +14,11 @@ Commit changes to git and create tag:
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
Tag the new release in https://github.com/Wargus/win32-stratagus-dependencies and wait for it to run through on the Appveyor CI.
This will automatically cause a release with the tag name to be created, and the windows dependencies will be uploaded there
Create ubuntu release packages:
(happens automatically on commit in launchpad)
Tag the new release here and wait for it to run through the CIs. Appveyor and Travis will upload new versions for Windows and OSX,
and Launchpad will automatically build new debian packages
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)
Tag the new release in Wargus/War1gus/Stargus/... these repositories should be set up to also use the appropriate release source
from the Stratagus releases