contrib/win32/win32-build.txt
changeset 1291 a942bf419a64
child 2384 068b32d06873
equal deleted inserted replaced
1290:f310f034422f 1291:a942bf419a64
       
     1 The standalone Windows installer for Mercurial is built in a somewhat
       
     2 jury-rigged fashion.
       
     3 
       
     4 It has the following prerequisites, at least as I build it:
       
     5 
       
     6   Python for Windows
       
     7       http://www.python.org/ftp/python/2.4.1/python-2.4.1.msi
       
     8 
       
     9   MinGW
       
    10       http://www.mingw.org/
       
    11 
       
    12   Python for Windows Extensions
       
    13       http://sourceforge.net/projects/pywin32/
       
    14 
       
    15   mfc71.dll (just download, don't install)
       
    16       http://starship.python.net/crew/mhammond/win32/
       
    17 
       
    18   The py2exe distutils extension
       
    19       http://sourceforge.net/projects/py2exe/
       
    20 
       
    21   Inno Setup
       
    22       http://www.jrsoftware.org/isinfo.php
       
    23 
       
    24   ISTool
       
    25       http://www.istool.org/default.aspx/
       
    26 
       
    27 And, of course, Mercurial itself.
       
    28 
       
    29 Once you have all this installed and built, clone a copy of the
       
    30 Mercurial repository you want to package, and name the repo
       
    31 C:\hg\hg-release.
       
    32 
       
    33 In a shell, build a standalone copy of the hg.exe program:
       
    34 
       
    35   python setup.py build -c mingw32 py2exe -b 1
       
    36 
       
    37 Copy mfc71.dll into the dist directory that just got created.
       
    38 
       
    39 Run ISTool, and open the C:\hg\hg-release\contrib\win32\mercurial.iss
       
    40 file.
       
    41 
       
    42 In ISTool, type Ctrl-F9 to compile the installer file.  The actual
       
    43 installer will be in the C:\hg\hg-release\Output directory.