2015-10-30 02:34:44 -04:00
|
|
|
# Making a New wxWidgets Release
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2015-10-30 02:34:44 -04:00
|
|
|
Creating a new release requires a few things before getting started:
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2015-10-31 16:45:00 -04:00
|
|
|
* Linux or OSX.
|
|
|
|
* Windows 7+ with HTML Help Workshop, and Inno Setup installed.
|
|
|
|
* 7-Zip, Doxygen 1.8.8, and GraphViz installed on both machines.
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2015-10-30 02:34:44 -04:00
|
|
|
Unless mentioned otherwise, all steps should be run on Linux or OSX so that the
|
|
|
|
repository export used for the release is primarily using LF line endings. Files
|
|
|
|
that require CRLF line endings will be converted appropriately.
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2015-10-31 16:45:00 -04:00
|
|
|
*Important:* Ensure that 7-Zip, HTML Help Workshop, Doxygen, GraphViz and Inno
|
|
|
|
Setup have all been added to your Path in Windows. You can confirm this by
|
|
|
|
running `7z`, `hhc`, `iscc`, `doxygen -v`, and `dot -V` in a command prompt.
|
|
|
|
Add the missing installed folder locations of any executables to your Path.
|
|
|
|
|
2015-10-30 02:34:44 -04:00
|
|
|
## Pre-Release Steps
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2015-10-30 02:34:44 -04:00
|
|
|
* Change the version in `include/wx/version.h`.
|
|
|
|
* Update `docs/readme.txt`. Please review its contents in addition to just
|
|
|
|
changing the version number.
|
|
|
|
* Put a date on the release line in `docs/changes.txt`.
|
|
|
|
* Update the date in the manual (`docs/doxygen/mainpages/manual.h`).
|
|
|
|
* Update the release announcement post in `docs/publicity/announce.txt`.
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2015-10-30 02:34:44 -04:00
|
|
|
Finally, tag the release:
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2015-10-30 02:34:44 -04:00
|
|
|
git tag vX.Y.Z -m 'Tag X.Y.Z release.'
|
2014-10-11 12:29:29 -04:00
|
|
|
|
2015-10-30 02:34:44 -04:00
|
|
|
## Creating Release Files
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2015-10-31 16:45:00 -04:00
|
|
|
The release scripts can be run from any working directory, and they will
|
2015-11-15 23:31:03 -05:00
|
|
|
generate all release package files under `distrib/release/x.y.z`. The scripts
|
|
|
|
build the release packages based on the current HEAD commit, so always
|
|
|
|
ensure you have the appropriate tag or commit checked out.
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2015-10-31 16:45:00 -04:00
|
|
|
1. Run `./build/tools/release.sh x.y.z` to create source archives
|
|
|
|
`wxWidgets-x.y.z.{7z,tar.bz2,zip}`, `wxWidgets-x.y.z-headers.7z`, and
|
|
|
|
`wxWidgets-x.y.z-docs-html.{tar.bz2,zip}` packages.
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2015-10-31 16:45:00 -04:00
|
|
|
2. Copy just the `wxWidgets-x.y.z.zip` package into the same
|
2015-11-15 23:31:03 -05:00
|
|
|
`distrib\release\x.y.z` folder on Windows.
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2015-10-31 16:45:00 -04:00
|
|
|
3. Run `build/tools/release.bat x.y.z` in a Windows command prompt.
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2015-11-15 23:31:03 -05:00
|
|
|
4. Copy these Windows packages back to your Linux or OSX `distrib/release/x.y.z`
|
|
|
|
directory so you can continue with the upload step with all packages
|
|
|
|
available:
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2015-10-31 16:45:00 -04:00
|
|
|
```
|
|
|
|
wxMSW-x.y.z-Setup.exe
|
|
|
|
wxWidgets-x.y.z.chm
|
|
|
|
```
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2015-10-30 02:34:44 -04:00
|
|
|
## Uploading
|
2014-06-11 17:14:02 -04:00
|
|
|
|
|
|
|
Upload the files to SourceForge. This can be done via the web interface or just
|
|
|
|
scp to sfusername,wxwindows@frs.sf.net:/home/frs/project/w/wx/wxwindows/x.y.z
|
|
|
|
The following files need to be uploaded:
|
|
|
|
|
|
|
|
wxMSW-Setup-x.y.z.exe
|
|
|
|
wxWidgets-x.y.z.7z
|
|
|
|
wxWidgets-x.y.z.tar.bz2
|
|
|
|
wxWidgets-x.y.z.zip
|
2015-10-31 16:45:00 -04:00
|
|
|
wxWidgets-x.y.z.chm
|
2015-10-30 02:34:44 -04:00
|
|
|
wxWidgets-x.y.z-docs-html.tar.bz2
|
|
|
|
wxWidgets-x.y.z-docs-html.zip
|
|
|
|
wxWidgets-x.y.z-headers.7z
|
2014-06-11 17:14:02 -04:00
|
|
|
|
|
|
|
You will need to use the web interface to mark the latest uploaded files as
|
|
|
|
being "default downloads" for the appropriate platforms (.zip or .exe for MSW,
|
|
|
|
.tar.bz2 for everything else) as otherwise SourceForge would continue to suggest
|
|
|
|
people to download old files.
|
|
|
|
|
|
|
|
Next, update (at least the versions and SHA1 sums, but maybe more) and upload
|
|
|
|
docs/release_files.mdwn and docs/release_binaries.mdwn files. They need to be
|
|
|
|
renamed to README.md on SF to be shown when the directory is viewed, i.e. do:
|
|
|
|
|
|
|
|
scp docs/release_files.mdwn \
|
|
|
|
sfuser,wxwindows@frs.sf.net:/home/frs/project/w/wx/wxwindows/x.y.z/README.md
|
|
|
|
scp docs/release_binaries.mdwn \
|
|
|
|
sfuser,wxwindows@frs.sf.net:/home/frs/project/w/wx/wxwindows/x.y.z/binaries/README.md
|
|
|
|
|
|
|
|
And upload the change log too:
|
|
|
|
|
|
|
|
scp docs/changes.txt \
|
|
|
|
sfuser,wxwindows@frs.sf.net:/home/frs/project/w/wx/wxwindows/x.y.z
|
|
|
|
|
|
|
|
Also upload the files to the FTP mirror at ftp.wxwidgets.org (ask Chris for
|
|
|
|
access if you don't have it).
|
|
|
|
|
|
|
|
Create http://docs.wxwidgets.org/x.y.z/ (ask Bryan to do it if not done yet).
|
|
|
|
|
2015-10-30 02:34:44 -04:00
|
|
|
## Announcement
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2015-10-30 22:06:09 -04:00
|
|
|
Update https://www.wxwidgets.org, usually a news item is enough but something
|
2014-10-11 12:29:29 -04:00
|
|
|
more can be called for for major releases.
|
|
|
|
|
2015-10-30 02:34:44 -04:00
|
|
|
Post `docs/publicity/announce.txt` at least to wx-announce@googlegroups.com and
|
2014-06-11 17:14:02 -04:00
|
|
|
to wx-users for the important releases.
|
|
|
|
|
2015-10-30 22:06:09 -04:00
|
|
|
Submit a link to https://www.reddit.com/r/programming
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2015-10-30 22:06:09 -04:00
|
|
|
Submit to https://isocpp.org/blog/suggest
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2015-10-30 22:06:09 -04:00
|
|
|
For major releases, submit the announcement to https://slashdot.org/submission
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2014-06-17 10:39:30 -04:00
|
|
|
Modify the links at downloads/index.html to point to the new release. Also
|
|
|
|
update the release date on this page.
|
2014-06-11 17:14:02 -04:00
|
|
|
|
|
|
|
Also update docs/index.html for the minor or major (i.e. not micro) releases.
|
|
|
|
|
|
|
|
Post to wxBlog if necessary.
|
|
|
|
|
2015-10-30 02:34:44 -04:00
|
|
|
Create a new post on our official Google+ page here:
|
|
|
|
https://plus.google.com/+wxwidgets/ (contact Bryan for access)
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2015-10-30 02:34:44 -04:00
|
|
|
## Version Updates
|
2014-06-11 17:14:02 -04:00
|
|
|
|
|
|
|
Trac: mark the milestone corresponding to the release as completed and add a
|
|
|
|
new version for it to allow reporting bugs against it and create the next
|
|
|
|
milestone (ask Vadim or Robin to do it or to get admin password).
|
|
|
|
|
2014-10-11 12:29:29 -04:00
|
|
|
Update the roadmap at http://trac.wxwidgets.org/wiki/Roadmap to at least
|
|
|
|
mention the new release there.
|
|
|
|
|
2015-10-30 02:34:44 -04:00
|
|
|
Run `misc/scripts/inc_release` to increment micro version, i.e. replace x.y.z
|
2014-10-11 12:29:29 -04:00
|
|
|
with x.y.z+1 (minor or major versions updates require manual intervention)
|
|
|
|
and rerun both `bakefile_gen` and `autoconf` afterwards to update the version
|
|
|
|
in the generated files too.
|
2014-06-11 17:14:02 -04:00
|
|
|
|
|
|
|
Update the definition of the stable and release branches in
|
2015-10-30 02:34:44 -04:00
|
|
|
`build/buildbot/config/include/defs.xml` after a minor version change.
|