Difference between revisions of "ReleasingWesnoth"
(Link to new page so there is a chance to find it.) |
|||
(46 intermediate revisions by 11 users not shown) | |||
Line 1: | Line 1: | ||
− | == | + | == This page is not maintained anymore. See [[Release_Steps]]. == |
− | |||
− | |||
− | |||
− | |||
− | |||
− | == | + | == todo steps to add == |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | === release commands === | + | Mac package: details in projectfiles/Xcode/README.md |
− | * | + | |
− | * | + | Windows package: ? |
− | + | ||
− | + | Android package: (third party, but still, details?) | |
− | # | + | |
− | + | iOS package: ? | |
− | # | + | |
− | + | For us: | |
− | # | + | |
− | . | + | * forum post in News |
− | # | + | * forum post in Announcements |
− | + | * Updating the download page on the wiki | |
− | + | * Updating the front page | |
− | * | + | * rebuild the front page (<code>git pull</code> and <code>make</code> after SSHing to www.wesnoth.org) |
− | + | * Announcing the release on Discord | |
− | + | * Announcing the release on Steam. | |
− | + | ** This included making a new header graphic if it's a stable release. | |
− | + | * Announcing the release on Twitter with a link to the forum post | |
− | + | ||
− | + | == Version numbering == | |
− | + | ||
− | + | We use the even/odd minor number convention. A.B.C where B is even means stable and B is odd means unstable/development version. | |
− | + | ||
− | + | 1.15.x are development versions for 1.16.0. | |
− | + | ||
− | * | + | A development version should be called "beta 1" when no further API changes are expected, nor string changes. At that point, translators and add-on authors can start working on 1.15.x without worrying that the rug be swept under their feet. |
− | * | + | |
− | * | + | A development version should be called "release candidate 1" when all blockers have been fixed. |
− | * | + | |
− | * | + | During the beta/RC/stable stages, no API changes (e.g., Lua/WML interfaces or semantics) should be made , nor large-scale or destabilizing internal changes, nor build dependencies changed. That's true from "1.15.x (1.16 beta 1)" and for the rest of the 1.16.x releases too. Such changes should be made in 1.17.x for 1.18. |
− | * | + | |
− | * | + | == Tools == |
+ | |||
+ | Tools needed for releasing: | ||
+ | * Normal tools to build everything from Wesnoth and to fetch the repository head (cmake based assumed for this page!) | ||
+ | * <code>po4a</code> (to be able to update the manpages and manual) | ||
+ | * <code>docbook-xml-dtd</code> (to generate the manual HTML files) | ||
+ | * <code>xdelta</code> 1.x (to create the Xdelta files) | ||
+ | * <code>rsync</code> for upload of tarballs | ||
+ | |||
+ | Tools for other processes: | ||
+ | * <code>optipng</code> (only for needed to run <code>utils/wesnoth-optipng</code>, not for normal releases) | ||
+ | * <code>imagemagick</code> (tool <code>convert</code>, only for needed to run <code>utils/wesnoth-optipng</code>, not for normal releases) | ||
+ | * <code>advancecomp</code> (tool <code>advdef</code>, only for needed to run <code>utils/wesnoth-optipng</code>, not for normal releases) | ||
+ | |||
+ | == General maintenance == | ||
+ | |||
+ | Not strictly release associated though the pot-update part should be done right before every release. | ||
+ | |||
+ | * Run <code>utils/wesnoth-optipng</code> from the main directory of the checkout every now and then (read: <b>very</b> rarely, because it enlarges the Git repository for <i>very</i> negligible reductions in distribution size), requires the packages optipng, imagemagick and advancecomp | ||
+ | * Run a <code>pot-update</code> regularly, once shortly before the release and before each string-freeze (including string-freezes in preparation for stable releases). This involves the following steps as of 1.13.3: | ||
+ | |||
+ | # target "pot-update" regenerates pot files and updates po files according to them | ||
+ | # target "update-po4a" reruns po4a for man pages and manual | ||
+ | # target "manual" regenerates manual | ||
+ | scons pot-update update-po4a manual | ||
+ | |||
+ | # Make sure that no new files were created in doc/, if new manpages/manuals were created, add them | ||
+ | git status doc/ | ||
+ | |||
+ | # Commit the bunch of updated po files and manpages/manuals | ||
+ | git commit doc/ po/ | ||
+ | |||
+ | (the following commands should be run but are usually forgotten...) | ||
+ | * Run <code>make lint</code> inside <code>data/tools</code> (runs <code>wmllint</code> with appropriate options), fix warnings or prod campaign and content maintainers as needed | ||
+ | * Run <code>make reindent</code> from <code>data/tools</code> to reindent all mainline WML according to our conventions (probably don't want to do this too often as it may inconvenience coders) | ||
+ | * Have a look at the pages from the category [[:Category:Review_on_Release|Review on Release]] | ||
+ | * If it's a 1.foo.0 release, start a new campaignd instance on add-ons.wesnoth.org and update the port numbers as in https://github.com/wesnoth/wesnoth/commit/211f14176ce57509003ca4542d388c526157093c | ||
+ | * Announce to developers the string freeze start date (deadline for string changes) and the release cutoff date (deadline for commits) | ||
+ | |||
+ | == Release tasks == | ||
+ | |||
+ | === Preparation steps === | ||
+ | * Merge the fixes on [[SpellingMistakes]] | ||
+ | * Review issues in the relevant labels (probably these? [https://github.com/wesnoth/wesnoth/labels/Blocker Blocker], [https://github.com/wesnoth/wesnoth/labels/Regression Regression], [https://github.com/wesnoth/wesnoth/labels/Urgent Urgent], and either [https://github.com/wesnoth/wesnoth/labels/Fwdport Fwdport] or [https://github.com/wesnoth/wesnoth/labels/Backport Backport] depending on what branch you're releasing) and milestones (for example, [https://github.com/wesnoth/wesnoth/milestone/9 1.15.2] and [https://github.com/wesnoth/wesnoth/milestone/13 1.16.0], if a development release; just [https://github.com/wesnoth/wesnoth/milestone/17 1.14.9], if a stable release). | ||
+ | ** For 1.15.3, review the [https://github.com/wesnoth/wesnoth/milestone/20 pre-1.16.0 string freeze] issues | ||
+ | * Review the list of issues for the ''previous'' patch release (1.15.1 or 1.14.8), make sure it's empty. | ||
+ | * Make sure to run and commit a pot-update (see above), and update to the latest revision of the branch if needed. At this point you should warn people to stop pushing commits to the branch you'll be using for the release so as to avoid last-minute work sync issues or new unexpected bugs. | ||
+ | * Check <code>changelog</code> and <code>players_changelog</code> for completeness and correctness, line wrap to 80 columns. | ||
+ | * Bump the version numbers in <code>src/wesconfig.h</code>, <code>Doxyfile</code>, <code>changelog</code>, <code>players_changelog</code>, and <code>projectfiles/Xcode/Info.plist</code> and commit. Note that as of version 1.13.2 there are additional <code>RC_VERSION_*</code> macros in <code>src/wesconfig.h</code> needed by Windows builds. Since unlike <code>VERSION</code> these aren't freeform values, they should represent the next release version whenever <code>VERSION</code> represents an in-dev version (e.g. if <code>VERSION</code> is <code>1.13.2+dev</code>, the <code>RC_VERSION_*</code> macros should have the values for <code>1.13.3</code> instead). | ||
+ | |||
+ | === Generating the files === | ||
+ | |||
+ | # Update the git checkout, just to be sure that you have the | ||
+ | # latest version | ||
+ | |||
+ | git pull --rebase | ||
+ | |||
+ | # Export the git checkout into a release tar archive (substitute | ||
+ | # $VERSION with the release version number and $BRANCH with the | ||
+ | # source branch). This will automatically exclude unwanted | ||
+ | # directories from the archive following export-ignore rules in | ||
+ | # .gitattributes | ||
+ | |||
+ | git archive --format=tar --prefix="wesnoth-$VERSION/" $BRANCH > "wesnoth-$VERSION.tar" | ||
+ | |||
+ | # Create the xdelta patch for the archives (this assumes that the | ||
+ | # uncompressed $OLDVERSION tar archive is present!) | ||
+ | |||
+ | xdelta delta wesnoth-$OLDVERSION.tar wesnoth-$VERSION.tar wesnoth-$OLDVERSION.tar-wesnoth-$VERSION.tar.xdelta | ||
+ | |||
+ | # Compress the tarball | ||
+ | |||
+ | bzip2 wesnoth-$VERSION.tar | ||
+ | |||
+ | # Create the SHA256 sum for the tarball | ||
+ | |||
+ | sha256sum wesnoth-$VERSION.tar.bz2 > wesnoth-$VERSION.tar.bz2.sha256 | ||
+ | |||
+ | == File upload == | ||
+ | |||
+ | The following files should be ready for upload now: | ||
+ | |||
+ | * <code>wesnoth-$VERSION.tar.bz2</code> | ||
+ | * <code>wesnoth-$VERSION.tar.bz2.sha256</code> | ||
+ | * <code>wesnoth-$OLDVERSION.tar-wesnoth-$VERSION.tar.xdelta</code> | ||
+ | |||
+ | You must upload these files to SourceForge.net and to <code>files.wesnoth.org/releases/</code> (as backup). Since the tarballs are very large it's recommended to use rsync via SSH instead of web uploads to guarantee their integrity. After uploading to wesnoth.org it might save time to rsync to SF.net from there. | ||
+ | |||
+ | For uploading to wesnoth.org, you will need to ask the site administrators for help with setting up your SSH configuration, as well as determining the destination path for the files. | ||
+ | |||
+ | # Upload to files.wesnoth.org (path for reference purposes only, | ||
+ | # does not reflect actual server set-up). | ||
+ | |||
+ | rsync -avP -e ssh <FILES> <USERNAME>@wesnoth.org:WWW/html/files/ | ||
+ | |||
+ | # Upload to SF.net: | ||
+ | # | ||
+ | # * STREAM: replace with 'wesnoth' for development releases and | ||
+ | # 'wesnoth-X.Y' for a stable release of the X.Y series. | ||
+ | # * RELEASENAME: replace with the release name, e.g. | ||
+ | # 'wesnoth-X.Y.Z'. | ||
+ | |||
+ | rsync -avP -e ssh <FILES> <USERNAME>,wesnoth@frs.sourceforge.net:/home/frs/project/w/we/wesnoth/<STREAM>/<RELEASENAME> | ||
+ | |||
+ | == Build the release for testing == | ||
+ | |||
+ | You can build the release for testing while the upload is in progress. Before installing the test build make sure that no old leftover files are there, and also remove the old preferences or (preferably) use the <code>utils/wesnoth-defaults</code> script found in the repository to use a throwaway preferences dir. | ||
+ | |||
+ | # Depending on whether you already compressed the tarball or not | ||
+ | tar -xvf wesnoth-$VERSION.tar | ||
+ | tar -xvf wesnoth-$VERSION.tar.bz2 | ||
+ | |||
+ | cd wesnoth-$VERSION && mkdir build && cd build | ||
+ | |||
+ | # CMake command to create a test build with suffix -X.Y.Z to be | ||
+ | # installed to /opt/wesnoth-X.Y.Z instead of /usr/local | ||
+ | cmake .. \ | ||
+ | -DCMAKE_INSTALL_PREFIX=/opt/wesnoth-X.Y.Z \ | ||
+ | -DENABLE_SERVER=TRUE \ | ||
+ | -DENABLE_CAMPAIGN_SERVER=TRUE \ | ||
+ | -DPREFERENCES_DIR=.wesnoth-X.Y.Z \ | ||
+ | -DBINARY_SUFFIX=-X.Y.Z \ | ||
+ | -DENABLE_NOTIFICATIONS=TRUE \ | ||
+ | -DENABLE_STRICT_COMPILATION=TRUE | ||
+ | |||
+ | # Build | ||
+ | make -j<N> | ||
+ | |||
+ | # install | ||
+ | sudo make install | ||
+ | |||
+ | Now cd somewhere else and run the installed copy of the game (e.g. <code>/opt/wesnoth-X.Y.Z/bin/wesnoth</code>). Running right from the sources is '''not''' enough to be sure that everything works as expected. | ||
+ | |||
+ | == Test the build == | ||
+ | This at least includes the following: | ||
+ | |||
+ | * Start the editor, check if creating a map is possible | ||
+ | * Start the game and try to connect to the official multiplayer server and to the add-on server | ||
+ | * Start the server, connect to it using the game to see if you can enter the lobby | ||
+ | * Check if in the game each campaign does start | ||
+ | * Check if you can start the in-game help and the credits | ||
+ | * Check if it is possible to create a local game | ||
+ | * Play at least one game/scenario (or droid your side to let the AI play), this can either be a normal campaign scenario or a multiplayer game | ||
If all of those points are working as expected, go on, if not, fix the problems and restart from the very beginning. | If all of those points are working as expected, go on, if not, fix the problems and restart from the very beginning. | ||
− | + | == Tagging and extra release related steps == | |
− | + | ||
− | + | If everything works as expected, tag your release. Just use the version number (e.g. <code>1.13.2</code> or <code>1.14.0</code>) for the tag, no need to add <code>wesnoth-</code> in front: | |
− | cd | + | |
− | make macro-reference. | + | git tag -a -m "Wesnoth $VERSION" $VERSION HEAD && git push $VERSION |
− | + | ||
− | + | Update [http://www.wesnoth.org/macro-reference.html macro-reference.html]: | |
− | + | ||
− | + | cd data/tools/ | |
− | + | make macro-reference.html | |
− | + | scp macro-reference.html wesnoth@wesnoth.org:WWW/html/macro-reference.html | |
− | + | ||
− | + | Regenerate the game credits and paste the contents to [[Credits]] on the wiki: | |
− | + | ||
− | + | data/tools/about_cfg_to_wiki -w <PATH TO GAME EXECUTABLE> > about.wiki | |
− | + | ||
− | + | == Alternative post-tag package creation method == | |
− | + | ||
− | + | This method requires tagging release before generating tarballs and doing uploads. It involves running a single script but this script needs to be modified each time to update versions. It also requires existing tarball of previous release against which to create xdelta. | |
− | + | ||
− | + | #!/bin/sh -xe | |
− | + | VERSION=1.15.2 | |
− | + | OLDVERSION=1.15.1 | |
− | + | git checkout $VERSION | |
− | + | git archive --format=tar --prefix="wesnoth-$VERSION/" $VERSION > "wesnoth-$VERSION.tar" | |
− | + | bunzip2 wesnoth-$OLDVERSION.tar.bz2 | |
− | + | xdelta delta wesnoth-$OLDVERSION.tar wesnoth-$VERSION.tar wesnoth-$OLDVERSION.tar-wesnoth-$VERSION.tar.xdelta || true | |
− | + | bzip2 wesnoth-$VERSION.tar | |
− | + | sha256sum wesnoth-$VERSION.tar.bz2 > wesnoth-$VERSION.tar.bz2.sha256 | |
− | + | scp -P 10222 wesnoth-$VERSION.tar.bz2 wesnoth-$OLDVERSION.tar-wesnoth-$VERSION.tar.xdelta loonycyborg@wesnoth.org:/srv/www/html/files/ | |
− | + | scp -P 10222 wesnoth-$VERSION.tar.bz2.sha256 YOUR_WESNOTH_ORG_USERNAME@wesnoth.org:/srv/www/html/files/releases/ | |
− | + | rsync -avP -e ssh wesnoth-$VERSION.tar.bz2 wesnoth-$VERSION.tar.bz2.sha256 wesnoth-$OLDVERSION.tar-wesnoth-$VERSION.tar.xdelta YOUR_SF_USERNAME,wesnoth@frs.sourceforge.net:/home/frs/project/w/we/wesnoth/wesnoth/wesnoth-$VERSION/ | |
+ | |||
+ | == Notify packagers == | ||
+ | |||
+ | Once all steps above are done and the upload to sourceforge is finished, you still need to notify the packagers. The announcement should include the important changes for packagers (especially path, dependencies, and other build-time changes), as well as the SHA256 checksum of the tarball attached. | ||
+ | |||
+ | For the current list of packagers, check <code>/scratch/packagers-list</code> on the files.wesnoth.org filesystem. | ||
+ | |||
+ | '''NOTE:''' Make sure that our "tier 1" packagers (currently Windows and OS X) whose content is hosted by us on SF.net upload the SHA256 sums of their files to files.wesnoth.org/releases/ as well! | ||
+ | |||
+ | '''TODO:''' Upload not just the sha256 files but also the actual files, as a backup in case sf.net is down etc | ||
+ | |||
+ | === Example messages === | ||
+ | |||
+ | ==== Development version ==== | ||
+ | Subject: Wesnoth X.Y.Z is out! | ||
+ | |||
+ | Hello, | ||
+ | |||
+ | Wesnoth X.Y.Z, a new feature release in the X.Y.x development series, is out | ||
+ | now. | ||
+ | |||
+ | The sources are already available on SourceForge.net, and files.wesnoth.org | ||
+ | (for backup or in case you don't trust the authenticity of the files on | ||
+ | SF.net). We will announce the release within the next 72 hours. In the | ||
+ | meantime you can create and upload your packages. | ||
+ | |||
+ | Nothing has changed for packagers in terms of dependencies or install | ||
+ | locations in this release. | ||
+ | |||
+ | Thank you for your contribution to Wesnoth! | ||
+ | |||
+ | ==== Stable version ==== | ||
+ | Subject: Wesnoth X.Y.Z is out! | ||
− | + | Hello, | |
− | + | Wesnoth X.Y.Z, a new maintenance release in the X.Y.x stable series, is out | |
+ | now. | ||
− | + | The sources are already available on SourceForge.net, and files.wesnoth.org | |
− | + | (for backup or in case you don't trust the authenticity of the files on | |
+ | SF.net). We will announce the release within the next 72 hours. In the | ||
+ | meantime you can create and upload your packages. | ||
+ | |||
+ | As this is a stable maintenance release, nothing has changed for packagers in | ||
+ | terms of dependencies or install locations. | ||
+ | |||
+ | Thank you for your contribution to Wesnoth! | ||
+ | |||
+ | == Cleanup and post release steps == | ||
+ | |||
+ | Bump the version numbers in the files mentioned above in the release preparation steps and commit your changes. Consider deleting the test build, tarball, xdelta, etc. from your filesystem as needed. | ||
+ | |||
+ | Contact shadowm or Soliton to update the MP servers' configuration to allow users of the new release or rebuild the servers as needed (only required for development releases). | ||
+ | |||
+ | == The real announcement == | ||
+ | |||
+ | Prepare the real announcement forum post for the day it is to be posted. To do so copy the last announcement from the release thread into the hidden forum (edit, then copy & paste). Edit the new copy to match the new release as needed, and leave it there for fixes and comments until the time for the real announcement comes. Make sure to use the items from <code>RELEASE_NOTES</code> (which you will purge after the final announcement is published). | ||
+ | |||
+ | You should also prepare the front page/News forum post in advance. | ||
− | + | Wait until the announcement conditions are met (waited at least 24 hours and OS X and Windows builds are ready OR 72 hours passed). | |
− | |||
− | |||
− | + | When ready to make the announcement public, do the following: | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | * Update [[Download]] in the wiki (currently takes the relevant contents from [[Template:StableDownload]] and [[Template:DevDownload]]). | |
− | + | * Post the contents of the new announcement post to the Release forum section as a new 'Announcement' topic. | |
+ | * Set the previous announcement to a 'Normal' topic and lock it. | ||
+ | * Post the new News forum post to the News forum section. | ||
+ | * Update the wesnoth.org front page (yes, this has to be done by hand, I know, it sucks ― shadowm): | ||
+ | ** Change versions, sizes, and links in the overview section to point to the latest version. | ||
+ | ** Update the front page news section with an HTML version of the News forum post. | ||
+ | ** If the front page news section is getting too large, remove some of the oldest posts. | ||
+ | * Copy the new news to [[Older_News]]. | ||
+ | * Update topics on IRC and post to social media (Twitter, etc.) as applicable. | ||
+ | * Clean up <code>RELEASE_NOTES</code> in the repository so it only contains the template for the next release. | ||
− | + | [[Category:Development]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 13:51, 27 July 2024
Contents
- 1 This page is not maintained anymore. See Release_Steps.
- 2 todo steps to add
- 3 Version numbering
- 4 Tools
- 5 General maintenance
- 6 Release tasks
- 7 File upload
- 8 Build the release for testing
- 9 Test the build
- 10 Tagging and extra release related steps
- 11 Alternative post-tag package creation method
- 12 Notify packagers
- 13 Cleanup and post release steps
- 14 The real announcement
This page is not maintained anymore. See Release_Steps.
todo steps to add
Mac package: details in projectfiles/Xcode/README.md
Windows package: ?
Android package: (third party, but still, details?)
iOS package: ?
For us:
- forum post in News
- forum post in Announcements
- Updating the download page on the wiki
- Updating the front page
- rebuild the front page (
git pull
andmake
after SSHing to www.wesnoth.org) - Announcing the release on Discord
- Announcing the release on Steam.
- This included making a new header graphic if it's a stable release.
- Announcing the release on Twitter with a link to the forum post
Version numbering
We use the even/odd minor number convention. A.B.C where B is even means stable and B is odd means unstable/development version.
1.15.x are development versions for 1.16.0.
A development version should be called "beta 1" when no further API changes are expected, nor string changes. At that point, translators and add-on authors can start working on 1.15.x without worrying that the rug be swept under their feet.
A development version should be called "release candidate 1" when all blockers have been fixed.
During the beta/RC/stable stages, no API changes (e.g., Lua/WML interfaces or semantics) should be made , nor large-scale or destabilizing internal changes, nor build dependencies changed. That's true from "1.15.x (1.16 beta 1)" and for the rest of the 1.16.x releases too. Such changes should be made in 1.17.x for 1.18.
Tools
Tools needed for releasing:
- Normal tools to build everything from Wesnoth and to fetch the repository head (cmake based assumed for this page!)
po4a
(to be able to update the manpages and manual)docbook-xml-dtd
(to generate the manual HTML files)xdelta
1.x (to create the Xdelta files)rsync
for upload of tarballs
Tools for other processes:
optipng
(only for needed to runutils/wesnoth-optipng
, not for normal releases)imagemagick
(toolconvert
, only for needed to runutils/wesnoth-optipng
, not for normal releases)advancecomp
(tooladvdef
, only for needed to runutils/wesnoth-optipng
, not for normal releases)
General maintenance
Not strictly release associated though the pot-update part should be done right before every release.
- Run
utils/wesnoth-optipng
from the main directory of the checkout every now and then (read: very rarely, because it enlarges the Git repository for very negligible reductions in distribution size), requires the packages optipng, imagemagick and advancecomp - Run a
pot-update
regularly, once shortly before the release and before each string-freeze (including string-freezes in preparation for stable releases). This involves the following steps as of 1.13.3:
# target "pot-update" regenerates pot files and updates po files according to them # target "update-po4a" reruns po4a for man pages and manual # target "manual" regenerates manual scons pot-update update-po4a manual # Make sure that no new files were created in doc/, if new manpages/manuals were created, add them git status doc/ # Commit the bunch of updated po files and manpages/manuals git commit doc/ po/
(the following commands should be run but are usually forgotten...)
- Run
make lint
insidedata/tools
(runswmllint
with appropriate options), fix warnings or prod campaign and content maintainers as needed - Run
make reindent
fromdata/tools
to reindent all mainline WML according to our conventions (probably don't want to do this too often as it may inconvenience coders) - Have a look at the pages from the category Review on Release
- If it's a 1.foo.0 release, start a new campaignd instance on add-ons.wesnoth.org and update the port numbers as in https://github.com/wesnoth/wesnoth/commit/211f14176ce57509003ca4542d388c526157093c
- Announce to developers the string freeze start date (deadline for string changes) and the release cutoff date (deadline for commits)
Release tasks
Preparation steps
- Merge the fixes on SpellingMistakes
- Review issues in the relevant labels (probably these? Blocker, Regression, Urgent, and either Fwdport or Backport depending on what branch you're releasing) and milestones (for example, 1.15.2 and 1.16.0, if a development release; just 1.14.9, if a stable release).
- For 1.15.3, review the pre-1.16.0 string freeze issues
- Review the list of issues for the previous patch release (1.15.1 or 1.14.8), make sure it's empty.
- Make sure to run and commit a pot-update (see above), and update to the latest revision of the branch if needed. At this point you should warn people to stop pushing commits to the branch you'll be using for the release so as to avoid last-minute work sync issues or new unexpected bugs.
- Check
changelog
andplayers_changelog
for completeness and correctness, line wrap to 80 columns. - Bump the version numbers in
src/wesconfig.h
,Doxyfile
,changelog
,players_changelog
, andprojectfiles/Xcode/Info.plist
and commit. Note that as of version 1.13.2 there are additionalRC_VERSION_*
macros insrc/wesconfig.h
needed by Windows builds. Since unlikeVERSION
these aren't freeform values, they should represent the next release version wheneverVERSION
represents an in-dev version (e.g. ifVERSION
is1.13.2+dev
, theRC_VERSION_*
macros should have the values for1.13.3
instead).
Generating the files
# Update the git checkout, just to be sure that you have the # latest version git pull --rebase # Export the git checkout into a release tar archive (substitute # $VERSION with the release version number and $BRANCH with the # source branch). This will automatically exclude unwanted # directories from the archive following export-ignore rules in # .gitattributes git archive --format=tar --prefix="wesnoth-$VERSION/" $BRANCH > "wesnoth-$VERSION.tar" # Create the xdelta patch for the archives (this assumes that the # uncompressed $OLDVERSION tar archive is present!) xdelta delta wesnoth-$OLDVERSION.tar wesnoth-$VERSION.tar wesnoth-$OLDVERSION.tar-wesnoth-$VERSION.tar.xdelta # Compress the tarball bzip2 wesnoth-$VERSION.tar # Create the SHA256 sum for the tarball sha256sum wesnoth-$VERSION.tar.bz2 > wesnoth-$VERSION.tar.bz2.sha256
File upload
The following files should be ready for upload now:
wesnoth-$VERSION.tar.bz2
wesnoth-$VERSION.tar.bz2.sha256
wesnoth-$OLDVERSION.tar-wesnoth-$VERSION.tar.xdelta
You must upload these files to SourceForge.net and to files.wesnoth.org/releases/
(as backup). Since the tarballs are very large it's recommended to use rsync via SSH instead of web uploads to guarantee their integrity. After uploading to wesnoth.org it might save time to rsync to SF.net from there.
For uploading to wesnoth.org, you will need to ask the site administrators for help with setting up your SSH configuration, as well as determining the destination path for the files.
# Upload to files.wesnoth.org (path for reference purposes only, # does not reflect actual server set-up). rsync -avP -e ssh <FILES> <USERNAME>@wesnoth.org:WWW/html/files/ # Upload to SF.net: # # * STREAM: replace with 'wesnoth' for development releases and # 'wesnoth-X.Y' for a stable release of the X.Y series. # * RELEASENAME: replace with the release name, e.g. # 'wesnoth-X.Y.Z'. rsync -avP -e ssh <FILES> <USERNAME>,wesnoth@frs.sourceforge.net:/home/frs/project/w/we/wesnoth/<STREAM>/<RELEASENAME>
Build the release for testing
You can build the release for testing while the upload is in progress. Before installing the test build make sure that no old leftover files are there, and also remove the old preferences or (preferably) use the utils/wesnoth-defaults
script found in the repository to use a throwaway preferences dir.
# Depending on whether you already compressed the tarball or not tar -xvf wesnoth-$VERSION.tar tar -xvf wesnoth-$VERSION.tar.bz2 cd wesnoth-$VERSION && mkdir build && cd build # CMake command to create a test build with suffix -X.Y.Z to be # installed to /opt/wesnoth-X.Y.Z instead of /usr/local cmake .. \ -DCMAKE_INSTALL_PREFIX=/opt/wesnoth-X.Y.Z \ -DENABLE_SERVER=TRUE \ -DENABLE_CAMPAIGN_SERVER=TRUE \ -DPREFERENCES_DIR=.wesnoth-X.Y.Z \ -DBINARY_SUFFIX=-X.Y.Z \ -DENABLE_NOTIFICATIONS=TRUE \ -DENABLE_STRICT_COMPILATION=TRUE # Build make -j<N> # install sudo make install
Now cd somewhere else and run the installed copy of the game (e.g. /opt/wesnoth-X.Y.Z/bin/wesnoth
). Running right from the sources is not enough to be sure that everything works as expected.
Test the build
This at least includes the following:
- Start the editor, check if creating a map is possible
- Start the game and try to connect to the official multiplayer server and to the add-on server
- Start the server, connect to it using the game to see if you can enter the lobby
- Check if in the game each campaign does start
- Check if you can start the in-game help and the credits
- Check if it is possible to create a local game
- Play at least one game/scenario (or droid your side to let the AI play), this can either be a normal campaign scenario or a multiplayer game
If all of those points are working as expected, go on, if not, fix the problems and restart from the very beginning.
If everything works as expected, tag your release. Just use the version number (e.g. 1.13.2
or 1.14.0
) for the tag, no need to add wesnoth-
in front:
git tag -a -m "Wesnoth $VERSION" $VERSION HEAD && git push $VERSION
Update macro-reference.html:
cd data/tools/ make macro-reference.html scp macro-reference.html wesnoth@wesnoth.org:WWW/html/macro-reference.html
Regenerate the game credits and paste the contents to Credits on the wiki:
data/tools/about_cfg_to_wiki -w <PATH TO GAME EXECUTABLE> > about.wiki
Alternative post-tag package creation method
This method requires tagging release before generating tarballs and doing uploads. It involves running a single script but this script needs to be modified each time to update versions. It also requires existing tarball of previous release against which to create xdelta.
#!/bin/sh -xe VERSION=1.15.2 OLDVERSION=1.15.1 git checkout $VERSION git archive --format=tar --prefix="wesnoth-$VERSION/" $VERSION > "wesnoth-$VERSION.tar" bunzip2 wesnoth-$OLDVERSION.tar.bz2 xdelta delta wesnoth-$OLDVERSION.tar wesnoth-$VERSION.tar wesnoth-$OLDVERSION.tar-wesnoth-$VERSION.tar.xdelta || true bzip2 wesnoth-$VERSION.tar sha256sum wesnoth-$VERSION.tar.bz2 > wesnoth-$VERSION.tar.bz2.sha256 scp -P 10222 wesnoth-$VERSION.tar.bz2 wesnoth-$OLDVERSION.tar-wesnoth-$VERSION.tar.xdelta loonycyborg@wesnoth.org:/srv/www/html/files/ scp -P 10222 wesnoth-$VERSION.tar.bz2.sha256 YOUR_WESNOTH_ORG_USERNAME@wesnoth.org:/srv/www/html/files/releases/ rsync -avP -e ssh wesnoth-$VERSION.tar.bz2 wesnoth-$VERSION.tar.bz2.sha256 wesnoth-$OLDVERSION.tar-wesnoth-$VERSION.tar.xdelta YOUR_SF_USERNAME,wesnoth@frs.sourceforge.net:/home/frs/project/w/we/wesnoth/wesnoth/wesnoth-$VERSION/
Notify packagers
Once all steps above are done and the upload to sourceforge is finished, you still need to notify the packagers. The announcement should include the important changes for packagers (especially path, dependencies, and other build-time changes), as well as the SHA256 checksum of the tarball attached.
For the current list of packagers, check /scratch/packagers-list
on the files.wesnoth.org filesystem.
NOTE: Make sure that our "tier 1" packagers (currently Windows and OS X) whose content is hosted by us on SF.net upload the SHA256 sums of their files to files.wesnoth.org/releases/ as well!
TODO: Upload not just the sha256 files but also the actual files, as a backup in case sf.net is down etc
Example messages
Development version
Subject: Wesnoth X.Y.Z is out! Hello, Wesnoth X.Y.Z, a new feature release in the X.Y.x development series, is out now. The sources are already available on SourceForge.net, and files.wesnoth.org (for backup or in case you don't trust the authenticity of the files on SF.net). We will announce the release within the next 72 hours. In the meantime you can create and upload your packages. Nothing has changed for packagers in terms of dependencies or install locations in this release. Thank you for your contribution to Wesnoth!
Stable version
Subject: Wesnoth X.Y.Z is out! Hello, Wesnoth X.Y.Z, a new maintenance release in the X.Y.x stable series, is out now. The sources are already available on SourceForge.net, and files.wesnoth.org (for backup or in case you don't trust the authenticity of the files on SF.net). We will announce the release within the next 72 hours. In the meantime you can create and upload your packages. As this is a stable maintenance release, nothing has changed for packagers in terms of dependencies or install locations. Thank you for your contribution to Wesnoth!
Cleanup and post release steps
Bump the version numbers in the files mentioned above in the release preparation steps and commit your changes. Consider deleting the test build, tarball, xdelta, etc. from your filesystem as needed.
Contact shadowm or Soliton to update the MP servers' configuration to allow users of the new release or rebuild the servers as needed (only required for development releases).
The real announcement
Prepare the real announcement forum post for the day it is to be posted. To do so copy the last announcement from the release thread into the hidden forum (edit, then copy & paste). Edit the new copy to match the new release as needed, and leave it there for fixes and comments until the time for the real announcement comes. Make sure to use the items from RELEASE_NOTES
(which you will purge after the final announcement is published).
You should also prepare the front page/News forum post in advance.
Wait until the announcement conditions are met (waited at least 24 hours and OS X and Windows builds are ready OR 72 hours passed).
When ready to make the announcement public, do the following:
- Update Download in the wiki (currently takes the relevant contents from Template:StableDownload and Template:DevDownload).
- Post the contents of the new announcement post to the Release forum section as a new 'Announcement' topic.
- Set the previous announcement to a 'Normal' topic and lock it.
- Post the new News forum post to the News forum section.
- Update the wesnoth.org front page (yes, this has to be done by hand, I know, it sucks ― shadowm):
- Change versions, sizes, and links in the overview section to point to the latest version.
- Update the front page news section with an HTML version of the News forum post.
- If the front page news section is getting too large, remove some of the oldest posts.
- Copy the new news to Older_News.
- Update topics on IRC and post to social media (Twitter, etc.) as applicable.
- Clean up
RELEASE_NOTES
in the repository so it only contains the template for the next release.