|This page provides an overview of how to build Audacity(R) Releases for Microsoft Windows(R).
There are currently two types of release builds for Windows, contained in the MSVC project configurations: Release (for Windows 98/ME) and Unicode_Release (for 2000/XP/Vista and later). These instructions apply for either one, but example values are for Unicode_Release.
Remove the old manual and make sure you can rebuild a new one:
- Make sure you have Python installed and on your PATH. Use version 2.7.*, not 3.2.*.
- Delete audacity\help\manual if it exists.
- The manual should be built in audacity\help\manual by the main Solution (See "Build the executable" below).
- If you have disabled the 'Help' project during testing you will have to build it separately.
- If you just want to get the manual, go to audacity\scripts\mw2html_audacity, run wiki2htm and wait for it to complete.
A currently optional step, at least for beta builds, is to reduce the size of the manual by reducing the size of the .png files. A way to do this on Windows with ImageMagick installed is shown as a batch script below, started from the image directory:
FOR /R %%a IN (*.png) DO mogrify -posterize 64 %%a FOR /R %%a IN (*.png) DO convert -quality 90 %%a %%a
This reduces the number of colors to 64 and then uses a hint to the .png compressor to be aggressive about compression. The %%a works on Win7. Martyn found that %a was needed instead on his platform (Win XP?). This reduces total images size from about 12Mb to about 5.2Mb. Some of the largest files are already being replaced on the wiki. If we do the whole wiki, then this step can be removed. If someone wants to post the equivalent script for Linux that would be appreciated.
Build the executable
- Check that your build of wxWidgets is the agreed version for this release and that it includes the modified setup.h that switches on accessibility features (see step 2 of the building guide).
- Make sure you have a current source version from SVN.
- Make sure to turn off ASIO support (see compile.txt) if you are creating the installer for public release. We cannot publicly post a build that supports ASIO, for licensing reasons (more detail in compile.txt).
- Make sure you have the DirectSound SDK installed so the build will support DirectSound (see step 5 of the building guide).
- Check that the following #defines in Audacity.h are up-to-date:
- Especially check the overriding "-alpha-<date>" line. (Vaughan believes we have never changed AUDACITY_MODLEVEL, so it can be ignored.)
- It's safer to not only do a Build > Clean Solution beforehand, but to also delete the directory (e.g., audacity\win\unicode_release). Safest of all is a fresh checkout.
- Make sure to build the "locale" project, either separately or as part of Build > Batch Build. You will need msgfmt.exe in your PATH for that. Get it from http://audacity.sourceforge.net/files/msgfmt.zip.
Copy other necessities to release build folder
- We are still keeping some of the LADSPA plug-ins in the Audacity installer, even though we are now offering a separate installer that includes all the LADSPA plug-ins built from version 0.4.15. We include gverb_1216.dll, hard_limiter_1413.dll and sc4_1882.dll. So:
- Check http://plugin.org.uk/ for updates.
- If none, just grab the dlls from a previous release.
- If updated, build these via the audacity\win\LADSPA_plugins-win project (see audacity\win\LADSPA_plugins-win\readme_LADSPA_plugins-win.txt).
- Once you have these DLL files, put them in the plug-ins folder, e.g., audacity\win\unicode_release\plug-ins.
- Make sure you copied to the build folder the appropriate wxWidgets DLLs from C:\wxWidgets-2.8.10\lib\vc_dll. For details, refer to "Provide access to the wxWidgets DLLs" at "MSVC++ STEP 7: Build Audacity" in building guide (compile.txt).
- Adding wxstd.mo files to the "Languages" folder in the Audacity build directory is now automated. This next step needs automating as well:
- Go to the newly added "gl_ES" and "zh_CN" folders in turn and copy the "wxstd.mo" files from each into the "gl" and zh" folders respectively.
- Delete the "gl_ES" and "zh_CN" folders.
Build the Installer
- Install the latest Inno Setup (http://www.jrsoftware.org/isinfo.php).
Note: For ANSI builds that target Windows 98/ME, you need the standard Inno Setup (not the Unicode version).
- Open the appropriate Inno Setup script:
- audacity\win\audacity.iss for (Unicode) Release or
- audacity\win\audacity_ansi.iss for the 'legacy' ANSI Release.
- Change the version strings as necessary. These are current for the normal Release:
For stable releases, this should just be "Audacity"
- AppVerName=Audacity 2.0
For stable releases, this should just be "Audacity"
- Compile and test the installer.
- Delete any existing folder that you intend to install to (see below).
- Install to 'Audacity', or as agreed for other versions (you may be offered something else, depending on your previous installation status) (this is important when it come to making the zip).
- GA: I don't follow that. I think user will be offered whatever unzip directory they chose to download to?
- MJS: The point is to zip the 'Audacity 1.3 Beta (Unicode)' folder, which defaults to a 'Audacity 1.3 Beta (Unicode).zip' file name (here at least) containing the 'Audacity 1.3 Beta (Unicode)' folder. Unzipping this into 'Program Files' leaves a neat folder name that follows previous conventions. I know that you have done the last few differently but I prefer the previous convention.
- GA: Yes, your zips have the Audacity files inside an "Audacity 1.3 Beta (Unicode)" folder. I arrange them to be inside an "audacity-win-unicode-1.3.x" folder to match the file name, where "x" is the release number. On Mac, the files in the zip are inside a "audacity-macosx-ub-1.3.x" folder. I think my practice makes sense for the Alphas, and might make sense for Betas too given they are now more frequent. Plus, I think people perhaps want more flexibility in location anyway if they are downloading a zip, the point being that they are not installing the files as they would if they ran an .exe. But I don't feel very strongly about it.
- The result appears in audacity\win\Output.
- Check the inbuilt manual to make sure that the 'look' is pretty similar to the previous version. Some changes to style sheets may 'break' the mw2html.py script and cause it to leave in / miss out some vital bits.
- Rename it as a release candidate, e.g. "audacity-win-unicode-1.3.10rc1.exe" for "release candidate 1".
Create the zip version
- Go to to the installed version, e.g., C:\Program Files\Audacity 1.3 Beta (Unicode).
- Remove the unins*.* files and the "help" folder.
- Zip the folder and rename it e.g. "audacity-win-unicode-1.3.10rc1.zip".
- Put the release candidate somewhere on the web for other people to test.
- Publicise this on audacity-devel.
- Get people to test the installer in both a fresh directory and over the top of previous recent and older versions.
- Hopefully people can test both cases on several Win OSes, like XP and 7.
- If changes are necessary, name successive candidates rcN and deprecate the previous version.
- When the final rcN is approved, remove the rcN suffix from the name on the exe and zip files. Those are then the release installer and zip.