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
|
|
|
|
2017-11-16 16:16:12 -05:00
|
|
|
* Linux (or another Unix but GNU tar is required).
|
2015-10-31 16:45:00 -04:00
|
|
|
* Windows 7+ with HTML Help Workshop, and Inno Setup installed.
|
|
|
|
* 7-Zip, Doxygen 1.8.8, and GraphViz installed on both machines.
|
2020-05-04 14:22:51 -04:00
|
|
|
* [Bakefile 0.2.12](https://bakefile.org/) installed on the linux machine.
|
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.
|
|
|
|
|
2017-04-22 09:57:00 -04:00
|
|
|
## Checking ABI Compatibility
|
|
|
|
|
|
|
|
For the stable (even) releases only, check that binary compatibility hasn't
|
|
|
|
been broken since the last stable release.
|
|
|
|
|
2018-02-28 12:48:52 -05:00
|
|
|
### Checking under Unix systems using `abi-compliance-checker` tool.
|
2017-04-22 09:57:00 -04:00
|
|
|
|
|
|
|
Instructions:
|
|
|
|
|
|
|
|
1. Get [the tool](https://lvc.github.io/abi-compliance-checker/).
|
|
|
|
1. Build the old (vX.Y.Z-1) library with `-g -Og` options, i.e. configure it
|
|
|
|
with `--enable-debug` and `CXXFLAGS=-Og CFLAFS=-Og`. For convenience, let's
|
|
|
|
assume it's built in "$old" subdirectory.
|
|
|
|
1. Build the new (vX.Y.Z) library with the same options in "$new".
|
|
|
|
1. Create directories for temporary files containing the ABI dumps for the old
|
|
|
|
and new libraries: `mkdir -p ../compat/{$old,$new}`.
|
|
|
|
1. Run abi-dumper on all libraries: `for l in $old/lib/*.so; do abi-dumper $l
|
2018-02-28 12:48:52 -05:00
|
|
|
-lver $old -o ../compat/$old/$(basename $l).dump; done` and the same thing with
|
2017-04-22 09:57:00 -04:00
|
|
|
the new libraries.
|
|
|
|
1. Run abi-compliance-checker on each pair of produced dumps to generate HTML
|
2018-02-28 12:48:52 -05:00
|
|
|
reports: `for l in 3.0.2/*dump; do abi-compliance-checker -l $(basename $l
|
|
|
|
.dump) -old $l -new 3.0.3/$(basename $l); done`.
|
2017-04-22 09:57:00 -04:00
|
|
|
1. Examine these reports, paying attention to the problem summary.
|
|
|
|
|
|
|
|
### Checking under MSW systems.
|
|
|
|
|
|
|
|
Manually check compatibility by building the widgets samples from the old tree
|
|
|
|
and then run it using the new DLLs.
|
|
|
|
|
2015-10-30 02:34:44 -04:00
|
|
|
## Pre-Release Steps
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2020-07-21 19:19:28 -04:00
|
|
|
Perform the following steps. You can run `build/tools/pre-release.sh` to do
|
|
|
|
the straightforward changes like updating the dates and checksums
|
|
|
|
automatically, but please also review and update the contents of the README
|
|
|
|
and announcement text.
|
|
|
|
|
|
|
|
The Post-Release step of the previous release will have updated
|
|
|
|
the micro version of this release. If this release represents a major
|
|
|
|
or minor release, these changes will have to be performed manually at
|
|
|
|
this point.
|
|
|
|
|
|
|
|
Note that the best order depends on the release being prepared: for a
|
|
|
|
development release, `docs/publicity/announce.txt` contains the list of the
|
|
|
|
major changes since the last stable release and should be updated first, as
|
|
|
|
this part of it can then be copied verbatim to the corresponding section of
|
|
|
|
the README file. For the stable releases, it's probably more convenient to
|
|
|
|
update the README with the details of the changes first.
|
|
|
|
|
|
|
|
Here is the list of the files, for reference:
|
|
|
|
* Update `docs/readme.txt`: version needs to be changed, content updated.
|
|
|
|
* Update `docs/release.md`: also version and reset SHA-1 sums to zeroes.
|
|
|
|
* Update `docs/changes.txt`: put the date on the release line and copy the
|
|
|
|
actual changes from Git notes as instructed in the file.
|
|
|
|
* Update the date in the manual (`docs/doxygen/mainpages/manual.h`).
|
|
|
|
* Update the release announcement post in `docs/publicity/announce.txt`.
|
|
|
|
* Update `docs/msw/binaries.md`: at least the version, but possibly also
|
|
|
|
the list of supported compilers.
|
|
|
|
|
|
|
|
Commit the changes and tag the release using your GPG key:
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2016-06-04 17:29:33 -04:00
|
|
|
git tag -s -m 'Tag X.Y.Z release' vX.Y.Z
|
|
|
|
|
2017-03-22 20:55:24 -04:00
|
|
|
Don't overwrite existing tags. For non-final releases use e.g. `X.Y.Z-rc1`
|
|
|
|
instead of `X.Y.Z`.
|
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
|
2016-06-04 17:29:33 -04:00
|
|
|
mostly build the release packages based on the current HEAD commit, so always
|
2015-11-15 23:31:03 -05:00
|
|
|
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
|
|
|
|
2016-06-04 17:29:33 -04:00
|
|
|
3. Run `build/tools/release.bat x.y.z` in a Windows command prompt. To avoid
|
|
|
|
confusion note that, unlike other generated files, the Windows installer is
|
|
|
|
created based on files as well as instructions (`build/tools/wxwidgets.iss`)
|
|
|
|
contained in the copied release ZIP and not from the current working wx
|
|
|
|
directory.
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2018-02-05 09:42:04 -05:00
|
|
|
4. Copy `wxMSW-x.y.z-Setup.exe` back to your Linux or OSX `distrib/release/x.y.z`
|
2015-11-15 23:31:03 -05:00
|
|
|
directory so you can continue with the upload step with all packages
|
2018-02-05 09:42:04 -05:00
|
|
|
available. Also create a ZIP file from the CHM one:
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2018-02-05 09:42:04 -05:00
|
|
|
zip wxWidgets-x.y.z-docs-chm.zip wxWidgets-x.y.z.chm
|
2016-02-28 16:33:37 -05:00
|
|
|
|
2018-02-05 09:42:04 -05:00
|
|
|
and copy/move it to the same directory.
|
|
|
|
|
2018-12-09 10:55:42 -05:00
|
|
|
5. Run `./build/tools/post-release.sh` to update the SHA-1 sums in
|
|
|
|
`docs/release.md`, then commit the changes. Notice that when making an RC,
|
|
|
|
the version must be explicitly specified on this script command line.
|
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
|
|
|
|
2016-02-28 16:33:37 -05:00
|
|
|
Create a new release on GitHub using vX.Y.Z tag and title.
|
|
|
|
|
2016-06-04 17:29:33 -04:00
|
|
|
Use the content of `docs/release.md` for the release description box.
|
2016-02-28 16:33:37 -05:00
|
|
|
|
|
|
|
Attach the following files to it:
|
2014-06-11 17:14:02 -04:00
|
|
|
|
|
|
|
wxMSW-Setup-x.y.z.exe
|
|
|
|
wxWidgets-x.y.z.7z
|
|
|
|
wxWidgets-x.y.z.tar.bz2
|
|
|
|
wxWidgets-x.y.z.zip
|
2018-02-05 09:42:04 -05:00
|
|
|
wxWidgets-x.y.z-docs-chm.zip
|
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
|
|
|
|
2020-04-25 12:47:16 -04:00
|
|
|
## Update documentation
|
|
|
|
|
|
|
|
This requires being able to ssh to docs.wxwidgets.org, please ask Bryan if you
|
|
|
|
think you should be able to do it, but can't.
|
|
|
|
|
|
|
|
Once logged in, run `~/update-trunk-docs.sh` script to update files in
|
|
|
|
`public_html/trunk` directory, copy its contents to `public_html/x.y.z`, switch
|
|
|
|
any links, such as `3.1` to point to `x.y.z` by doing
|
|
|
|
|
|
|
|
$ cd ~/public_html
|
|
|
|
$ ln -sfn 3.y.z 3.y
|
|
|
|
|
2020-07-22 09:58:13 -04:00
|
|
|
and edit `~/public_html/index.html` to add the link to the new release to it.
|
2020-04-25 12:47:16 -04:00
|
|
|
|
|
|
|
If the docs must be generated from the tag itself, and not from master, note
|
|
|
|
that you need to apply the special commit which is always the tip of master
|
|
|
|
branch in `~/wxWidgets` git repository on this machine.
|
|
|
|
|
|
|
|
E.g. to create documentation for `v3.0.z` release:
|
|
|
|
|
|
|
|
$ cd ~/wxWidgets
|
|
|
|
$ git fetch --tags
|
|
|
|
$ git checkout -b my-tmp-branch v3.0.z
|
|
|
|
$ git cherry-pick master
|
|
|
|
$ vi docs/doxygen/Doxyfile
|
|
|
|
... edit HTML_OUTPUT to create files in ~/public_html/3.0.z
|
|
|
|
$ cd docs/doxygen
|
|
|
|
$ PATH="$HOME/doxygen/bin:$PATH" WX_SKIP_DOXYGEN_VERSION_CHECK=1 nice -n 15 ./regen.sh php
|
|
|
|
|
|
|
|
# Cleanup
|
|
|
|
$ git reset --hard master
|
|
|
|
$ git checkout master
|
|
|
|
$ git branch -d my-tmp-branch
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2020-07-22 09:58:13 -04:00
|
|
|
Note that the docs web site currently uses Cloudflare for caching, which means
|
|
|
|
that it won't update for several hours after the change, unless you purge the
|
|
|
|
cache manually in the Cloudflare console (which requires an account).
|
|
|
|
|
2015-10-30 02:34:44 -04:00
|
|
|
## Announcement
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2018-10-10 07:08:31 -04:00
|
|
|
Update https://www.wxwidgets.org:
|
2020-06-28 09:26:36 -04:00
|
|
|
* Update release information (at least `version` and `released`) in `_data/releases.yml`.
|
2018-12-10 12:35:48 -05:00
|
|
|
* Update the list of compilers used for making MSW binaries in
|
|
|
|
`downloads/index.md` if necessary (note that there is no need to update
|
|
|
|
anything else, the page will dynamically show the release files with the
|
|
|
|
specified prefixes).
|
2018-10-10 07:08:31 -04:00
|
|
|
* Add a news item. Usually a news item is enough but something
|
|
|
|
more can be called for for major releases
|
2020-04-27 18:52:13 -04:00
|
|
|
* Push the changes (or create the PR with them) to GitHub. Note that this will
|
|
|
|
trigger the site rebuild which will fail if the release statistics are not
|
|
|
|
available yet, so make sure to publish the release on GitHub first (or wait
|
|
|
|
an hour for the next scheduled site rebuild to happen).
|
2014-10-11 12:29:29 -04:00
|
|
|
|
2015-10-30 02:34:44 -04:00
|
|
|
Post `docs/publicity/announce.txt` at least to wx-announce@googlegroups.com and
|
2018-10-10 07:59:10 -04:00
|
|
|
to wx-users.
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2018-12-10 12:35:48 -05:00
|
|
|
Submit a link to https://www.reddit.com/r/cpp or r/programming (depending on
|
|
|
|
the release importance).
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2018-12-10 12:35:48 -05:00
|
|
|
Submit to https://isocpp.org/blog/suggest (need to be logged in to do it).
|
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
|
|
|
|
2020-05-04 14:22:51 -04:00
|
|
|
## Post-Release Steps
|
|
|
|
|
|
|
|
* 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).
|
|
|
|
|
|
|
|
* Update the roadmap at https://trac.wxwidgets.org/wiki/Roadmap to at
|
|
|
|
least mention the new release there.
|
|
|
|
|
|
|
|
* Run `misc/scripts/inc_release` to increment micro version,
|
|
|
|
i.e. replace x.y.z with x.y.z+1.
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2020-07-23 10:22:58 -04:00
|
|
|
* Update the C:R:A settings in `build/bakefiles/version.bkl` to C:R+1:A.
|
2020-05-04 14:22:51 -04:00
|
|
|
Then from the build/bakesfiles directory run
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2020-05-04 14:22:51 -04:00
|
|
|
bakefile_gen
|
2014-10-11 12:29:29 -04:00
|
|
|
|
2020-05-04 14:22:51 -04:00
|
|
|
and from the root directory run
|
2019-12-30 13:37:13 -05:00
|
|
|
|
2020-05-04 14:22:51 -04:00
|
|
|
autoconf -B build/autoconf_prepend-include
|
2014-06-11 17:14:02 -04:00
|
|
|
|
2020-07-21 19:19:28 -04:00
|
|
|
* Restore the description of the Git notes use and create a skeleton section
|
|
|
|
for the next release in `docs/changes.txt`.
|
|
|
|
|
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
## MSW Visual Studio Official Builds
|
|
|
|
|
|
|
|
To build official x86 and x64 shared binaries the following are prerequisites:
|
2019-09-27 10:42:06 -04:00
|
|
|
|
2019-10-18 08:46:45 -04:00
|
|
|
- Visual Studio 2008, 2010, 2012, 2013 and 2015
|
2019-09-27 10:42:06 -04:00
|
|
|
- Windows SDK 6.1, 7.1 (required for x64 builds for Visual Studio 2008, 2010)
|
|
|
|
- 7z (required for packaging the files)
|
|
|
|
- fciv (required for generating the checksums)
|
2016-04-28 17:26:03 -04:00
|
|
|
|
|
|
|
The VSxxxCOMNTOOLS environment variables are used to locate the tools required
|
|
|
|
for Visual Studio 2012, 2013 and 2015. There are no Microsoft defined variables
|
|
|
|
for the SDKs used for Visual Studio 2008 and 2010. The build will look for the
|
|
|
|
following environment variables for the Visual Studio 2008 and 2010 SDK tools:
|
|
|
|
|
|
|
|
WINDOWS61SDK
|
|
|
|
WINDOWS71SDK
|
|
|
|
|
|
|
|
If either of these are blank they are set to the default install location.
|
|
|
|
|
|
|
|
To build binaries for a single compiler, open a command prompt (for Visual
|
|
|
|
Studio 2008 only an SDK 6.1 developer's command prompt must be used),
|
2019-09-17 13:53:06 -04:00
|
|
|
cd to the build\tools\msvs folder and run the batch file 'officialbuild'
|
2016-04-28 17:26:03 -04:00
|
|
|
with the vcXXX version number:
|
|
|
|
|
2019-09-27 10:42:06 -04:00
|
|
|
Visual Studio 2008 vc90
|
|
|
|
Visual Studio 2010 vc100
|
|
|
|
Visual Studio 2012 vc110
|
|
|
|
Visual Studio 2014 vc120
|
2019-10-18 08:46:45 -04:00
|
|
|
Visual Studio 2015 vc14x
|
|
|
|
|
2021-08-25 18:02:51 -04:00
|
|
|
The Visual Studio 2015, 2017, 2019 and 2022 are binary compatible, allowing the
|
2019-10-18 08:46:45 -04:00
|
|
|
vc14x binary to be used with any of them.
|
2016-04-28 17:26:03 -04:00
|
|
|
|
|
|
|
This will build all of the x86 and x64 binaries for the selected compiler version,
|
|
|
|
package them in 7z files and calculate the checksums. The 7z files and the
|
|
|
|
checksums are output to the build\msw\packages folder.
|
|
|
|
|
|
|
|
All of the compiler packages can be built at the same time by executing the
|
2019-09-27 10:42:06 -04:00
|
|
|
build\tools\msvs\buildall.bat file from a command prompt. Each build will be
|
|
|
|
launched in its own shell.
|