contrib/win32/win32-build.txt
changeset 9356 9488a4d64fb5
parent 9175 22979282d8ca
child 9358 baebf028f505
equal deleted inserted replaced
9353:3ac42ca1f3e6 9356:9488a4d64fb5
    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)
    87   cd ..
    90   cd ..
    88 
    91 
    89 If you use ISTool, you open the C:\hg\hg-release\contrib\win32\mercurial.iss
    92 If you use ISTool, you open the C:\hg\hg-release\contrib\win32\mercurial.iss
    90 file and type Ctrl-F9 to compile the installer file.
    93 file and type Ctrl-F9 to compile the installer file.
    91 
    94 
    92 Otherwise you run the Inno Setup compiler.  Assuming it's on the path you run:
    95 Otherwise you run the Inno Setup compiler.  Assuming it's in the path
       
    96 you should execute:
    93 
    97 
    94   iscc contrib\win32\mercurial.iss
    98   iscc contrib\win32\mercurial.iss /DVERSION=foo
    95 
    99 
    96 The actual installer will be in the C:\hg\hg-release\Output directory.
   100 Where 'foo' is the version number you would like to see in the
       
   101 'Add/Remove Applications' tool.  The installer will be placed into
       
   102 a directory named Output/ at the root of your repository.
    97 
   103 
    98 To automate the steps above you may want to create a batchfile based on the
   104 To automate the steps above you may want to create a batchfile based on the
    99 following:
   105 following:
   100 
   106 
   101   echo [build] > setup.cfg
   107   echo [build] > setup.cfg
   102   echo compiler=mingw32 >> setup.cfg
   108   echo compiler=mingw32 >> setup.cfg
   103   python setup.py py2exe -b 1
   109   python setup.py py2exe -b 1
   104   cd doc
   110   cd doc
   105   mingw32-make ASCIIDOC=asciidoc.bat html
   111   mingw32-make ASCIIDOC=asciidoc.bat html
   106   cd ..
   112   cd ..
   107   iscc contrib\win32\mercurial.iss
   113   iscc contrib\win32\mercurial.iss /DVERSION=snapshot
   108 
   114 
   109 and run it from the root of the hg repository (c:\hg\hg-release).
   115 and run it from the root of the hg repository (c:\hg\hg-release).