Latest Posts

Changes in ReleasingWidelands

Revision Differences of Revision 2

## Releasing new versions of wWidelands ¶

This document is about what steps are to perform to release a new build of
wWidelands. ¶

We release one release candidate before each release, to make sure no completely stupid mistakes creep into a release. The steps for preparing the RC are exactly the same as the steps for preparing the final release, to ensure that problems with the release problems are found with the release candidate. ¶




### Release cycle ¶

The rough release cycle should work like this: ¶

#* Agree on a date for release and release candidate on widelands-public ¶
#* Find a release manager. ¶
#* Feature & Goal check# Updating the RoadmapPage and checking, if all goals are reached. ¶
#* Check, that ChangelogPage is valid (Check with wiki page) ¶
#* Check, that DevelopersPage (authors) file is valid (Check with wiki page) ¶

#* Check for rare maintenance tasks# UsingTheSconsBuildSystem#OtherTargets ¶

#* On the agreed-upon date, release the release candidate. ¶
#* From that point on, only bugfixes and translation/documentation updates are allowed into trunk (trivial changes to image and sound data might be allowed, but be careful!) ¶
#* Approximately one week after the release candidate, release the final build. ¶


### Releasing a build ¶

As noted above, the steps for RC and final build should be the same, to flush out any problems with the process. ¶

#* Tag the build in our Subversion repository, using the remote svn cp command. ¶
#* In the tagged version of the build ([b]__not[/b]__ in trunk), add build-specific patches# Change SConstruct to default to 'release' and 'build-NN[rc]' as BUILD_ID ¶

#* Prepare a release statement for news etc.; use release statements of previous releases as a template. ¶
#* On SF.net, create a new release build-NN[rc] under the widelands package. ¶
#* Export (using svn export) into a new directory called widelands, create a source tarball widelands-build-NN[rc].tar.bz2 from the unmodified directory. ¶
#* Create binary packages for as many platforms as possible. Developers who are not the release manager are expected to contribute. ¶
#* Upload all packages (source and binary) to the SF.net release, as they get packaged.# Upload the source tarball as early as possible, as some distro packagers need an official source tarball for reference. ¶

#* Allow roughly two days between tagging the build in our Subversion repository before posting news items. ¶
#* Post news to:# SF.net project news ¶
#* freshmeat.net (current project owner there is sigra) ¶
#* Remember to send the email alert in File Release management on SF.net to people who are watching the widelands package ¶
#* widelands-public & widelands-announce ¶
#* wwwl.widelands.org homepage ¶

#
* Add group to tracker.


### Creating binary packages ¶

#### Windows ¶

For compilation of widelands-binary take a look at BuildingWidelandsUnderWindows and the README-file in [widelands-trunk]/build/win32 ¶

Compilation of a Setup-file is done via [widelands-trunk]/build/win32/innosetup/__Widelands.iss__Script, which can be run with [Inno Setup](http://jrsoftware.org) -Compiler. ¶

#### Linux (directory independent) ¶

These points are intended to help in creating a tarball that can easily be extracted and run in-place (e.g. in a user's home directory). For general Linux build info, see UsingTheSconsBuildSystem, among others. ¶

Here are some things you need to be aware of: ¶

* The locale directory must be correct; otherwise, Widelands will not find translations. Adding the parameters_install_prefix=. bindir=. datadir=. localedir=./locale_to the scons command line should work, but be sure to test the binary package before the actual release. ¶
* Some Linux distributions still don't have GLIBC 2.4 (i.e. Debian Etch). To support them, hack_build/scons-tools/scons_configure.py_and replace the compile flag -fstack-protector-all by -fno-stack-protector. You can check for GLIBC dependencies on the final executable using_strings widelands | grep GLIBC_. ¶
These are the suggested steps for building the package: ¶

#* Extract the release source package. ¶
#* Build the widelands executable using SCons, but see the points above. ¶
#* Perform some basic test (e.g. that translations are found). ¶
#* Delete everything that is only relevant for source packages.# The following should be an exhaustive list of the files and subdirectories in the main Widelands directory:* campaigns ¶
* ChangeLog ¶
* COPYING ¶
* CREDITS ¶
* fonts ¶
* locale ¶
* maps ¶
* music ¶
* pics ¶
* sound ¶
* tribes ¶
* txts ¶
* widelands ¶
* worlds ¶

#* Delete SConscript files in subdirectories. ¶

#* Create the tarball. ¶
#* Extract the tarball into a new directory and perform some basic tests before uploading.

#### Other ¶

TODO: This section should contain (or point to) documentation concerning how to build binary packages for different platforms: ¶

* Linux, installable (i.e..deb/.rpm packages that are integrated into the FHS hierarchy) ¶
* Mac OS X ¶
* others? ¶
* Delete all source releveant stuff; the remaining files in the main Widelands directory should be: campaigns ChangeLog COPYING CREDITS fonts locale maps music pics sound tribes txts widelands worlds ¶