]> git.saurik.com Git - wxWidgets.git/blame - docs/tech/tn0022.txt
Only include <unistd.h> under Unix in wxGTK code.
[wxWidgets.git] / docs / tech / tn0022.txt
CommitLineData
8de577bc
VZ
1 Making a new wxWidgets release
2 ==============================
c7f200e9 3
408ee837
VZ
4Before making the release
5-------------------------
6
7Update docs/readme.txt. Please review its contents in addition to just
8changing the version number.
9
10
8de577bc
VZ
11Creating release files
12----------------------
c7f200e9 13
433400df
VZ
14Currently our release system uses a Python 2.x script to generate releases.
15The script requires Unix utilities such as tar, zip and unix2dos and thus must
16be run either on Unix or using Cygwin on Windows. To generate a release, simply
17run the following command:
c7428e08
KO
18
19build/tools/create-archive.py --compression=all /path/to/output/dir
20
433400df
VZ
21This will produce zip, gzip and bzip archives of the tree (without
22"compression" argument only .gz is made). Note that this commands produces huge
23amounts of output so redirecting it to a file is recommended.
c7428e08 24
433400df
VZ
25To add a prefix to the release, such as RC1, the SVN revision, or a date, just
26pass --postfix="postfix" to the script. More info on the options and their
27possible values can be found by calling `create-archive.py --help`.
c7428e08 28
433400df
VZ
29IMPORTANT NOTE: You *must* run this script from a clean source tree, that is,
30 with no junk files in it or modifications. This is because the
31 release should be a pristine copy of the tree as of the time of
32 release. If you have legitimate modifications in the tree that need
33 to be in the release, commit them first.
c7428e08 34
474aa33e
CE
35To generate the windows installer (.exe) and the documentation files (chm and htb formats)
36run:
37
38build\tools\bld_chm_exe.bat
39
40which depends on the wxwidgets.iss file, and generates output in the %DAILY% directory. It
41assumes a clean copy of the wxWidgets source tree in %INNO%. Temporary files will be generated
42in the tree from which the batch file is run. It depends on doxygen, a number of gnu
43win32 tools and Microsofts htmlhelp compiler. The wxwidgets.iss file should not need
44editing, but you will want to check that the bld_chm_exe.bat has the correct version number.
45
46
8de577bc 47
273a28a1
VZ
48Alternative non official release scripts
49----------------------------------------
50
51If you use git-svn, then you can use alternative script that avoids the
52problems such as using non-clean tree and also has better handling of the ends
53of lines conversions. To use it you need to run
54
55- build/tools/svn-find-native-eols.pl
56- build/tools/git-make-release
57- build/tools/make-html-docs
58
59(the last one can also be used without git).
8de577bc
VZ
60
61
62Uploading
63---------
64
30d7a990
VZ
65Upload the files to SourceForge. This can be done via the web interface or just
66scp to sfusername,wxwindows@frs.sf.net:/home/frs/project/w/wx/wxwindows/x.y.z
67You will need to use the web interface to mark the latest uploaded files as
68being "default downloads" for the appropriate platforms (.zip or .exe for MSW,
69.tar.bz2 for everything else) as otherwise SourceForge would continue to suggest
70people to download old files.
71
72Also upload the files to the FTP mirror at ftp.wxwidgets.org (ask Chris for
73access if you don't have it).
8de577bc 74
408ee837 75Create http://docs.wxwidgets.org/x.y.z/ (ask Bryan to do it if not done yet).
8de577bc
VZ
76
77
78Announcement
79------------
80
81Post announcement at least to wx-announce@googlegroups.com.
82
83TODO: where else to announce it?
84
85Update www.wxwidgets.org, usually a news item is enough but something more can
86be called for for major releases.
87
88Post to wxBlog if necessary.
89
90
91Version updates
92---------------
93
94Trac: mark the milestone corresponding to the release as completed and add a
95new version for it to allow reporting bugs against it (ask Vadim or Robin to do
96it).
97
98Run misc/scripts/inc_release to increment micro version, i.e. replace x.y.z
99with x.y.z+1 (minor or major versions updates require manual intervention).