23 |
23 |
24 GnuWin32 gettext utility |
24 GnuWin32 gettext utility |
25 http://gnuwin32.sourceforge.net/packages/gettext.htm |
25 http://gnuwin32.sourceforge.net/packages/gettext.htm |
26 |
26 |
27 Inno Setup |
27 Inno Setup |
28 http://www.jrsoftware.org/isinfo.php |
28 http://www.jrsoftware.org/isdl.php#qsp |
|
29 |
|
30 Get and install ispack-5.3.4.exe which includes Inno Setup Processor, |
|
31 which is necessary to package Mercurial. |
29 |
32 |
30 ISTool - optional |
33 ISTool - optional |
31 http://www.istool.org/default.aspx/ |
34 http://www.istool.org/default.aspx/ |
32 |
35 |
33 add_path (you need only add_path.exe in the zip file) |
36 add_path (you need only add_path.exe in the zip file) |
92 cd .. |
95 cd .. |
93 |
96 |
94 If you use ISTool, you open the C:\hg\hg-release\contrib\win32\mercurial.iss |
97 If you use ISTool, you open the C:\hg\hg-release\contrib\win32\mercurial.iss |
95 file and type Ctrl-F9 to compile the installer file. |
98 file and type Ctrl-F9 to compile the installer file. |
96 |
99 |
97 Otherwise you run the Inno Setup compiler. Assuming it's on the path you run: |
100 Otherwise you run the Inno Setup compiler. Assuming it's in the path |
|
101 you should execute: |
98 |
102 |
99 iscc contrib\win32\mercurial.iss |
103 iscc contrib\win32\mercurial.iss /DVERSION=foo |
100 |
104 |
101 The actual installer will be in the C:\hg\hg-release\Output directory. |
105 Where 'foo' is the version number you would like to see in the |
|
106 'Add/Remove Applications' tool. The installer will be placed into |
|
107 a directory named Output/ at the root of your repository. |
102 |
108 |
103 To automate the steps above you may want to create a batchfile based on the |
109 To automate the steps above you may want to create a batchfile based on the |
104 following: |
110 following: |
105 |
111 |
106 echo [build] > setup.cfg |
112 echo [build] > setup.cfg |
107 echo compiler=mingw32 >> setup.cfg |
113 echo compiler=mingw32 >> setup.cfg |
108 python setup.py py2exe -b 1 |
114 python setup.py py2exe -b 1 |
109 cd doc |
115 cd doc |
110 mingw32-make RST2HTML=rst2html.bat html |
116 mingw32-make RST2HTML=rst2html.bat html |
111 cd .. |
117 cd .. |
112 iscc contrib\win32\mercurial.iss |
118 iscc contrib\win32\mercurial.iss /DVERSION=snapshot |
113 |
119 |
114 and run it from the root of the hg repository (c:\hg\hg-release). |
120 and run it from the root of the hg repository (c:\hg\hg-release). |