Show More
@@ -1,131 +1,130 b'' | |||||
1 | ; Script generated by the Inno Setup Script Wizard. |
|
1 | ; Script generated by the Inno Setup Script Wizard. | |
2 | ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! |
|
2 | ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! | |
3 |
|
3 | |||
4 | #ifndef VERSION |
|
4 | #ifndef VERSION | |
5 | #define FileHandle |
|
5 | #define FileHandle | |
6 | #define FileLine |
|
6 | #define FileLine | |
7 | #define VERSION = "unknown" |
|
7 | #define VERSION = "unknown" | |
8 | #if FileHandle = FileOpen(SourcePath + "\..\..\mercurial\__version__.py") |
|
8 | #if FileHandle = FileOpen(SourcePath + "\..\..\mercurial\__version__.py") | |
9 | #expr FileLine = FileRead(FileHandle) |
|
9 | #expr FileLine = FileRead(FileHandle) | |
10 | #expr FileLine = FileRead(FileHandle) |
|
10 | #expr FileLine = FileRead(FileHandle) | |
11 | #define VERSION = Copy(FileLine, Pos('"', FileLine)+1, Len(FileLine)-Pos('"', FileLine)-1) |
|
11 | #define VERSION = Copy(FileLine, Pos('"', FileLine)+1, Len(FileLine)-Pos('"', FileLine)-1) | |
12 | #endif |
|
12 | #endif | |
13 | #if FileHandle |
|
13 | #if FileHandle | |
14 | #expr FileClose(FileHandle) |
|
14 | #expr FileClose(FileHandle) | |
15 | #endif |
|
15 | #endif | |
16 | #pragma message "Detected Version: " + VERSION |
|
16 | #pragma message "Detected Version: " + VERSION | |
17 | #endif |
|
17 | #endif | |
18 |
|
18 | |||
19 | [Setup] |
|
19 | [Setup] | |
20 | AppCopyright=Copyright 2005-2010 Matt Mackall and others |
|
20 | AppCopyright=Copyright 2005-2010 Matt Mackall and others | |
21 | AppName=Mercurial |
|
21 | AppName=Mercurial | |
22 | AppVerName=Mercurial {#VERSION} |
|
22 | AppVerName=Mercurial {#VERSION} | |
23 | InfoAfterFile=contrib/win32/postinstall.txt |
|
23 | InfoAfterFile=contrib/win32/postinstall.txt | |
24 | LicenseFile=COPYING |
|
24 | LicenseFile=COPYING | |
25 | ShowLanguageDialog=yes |
|
25 | ShowLanguageDialog=yes | |
26 | AppPublisher=Matt Mackall and others |
|
26 | AppPublisher=Matt Mackall and others | |
27 | AppPublisherURL=http://mercurial.selenic.com/ |
|
27 | AppPublisherURL=http://mercurial.selenic.com/ | |
28 | AppSupportURL=http://mercurial.selenic.com/ |
|
28 | AppSupportURL=http://mercurial.selenic.com/ | |
29 | AppUpdatesURL=http://mercurial.selenic.com/ |
|
29 | AppUpdatesURL=http://mercurial.selenic.com/ | |
30 | AppID={{4B95A5F1-EF59-4B08-BED8-C891C46121B3} |
|
30 | AppID={{4B95A5F1-EF59-4B08-BED8-C891C46121B3} | |
31 | AppContact=mercurial@selenic.com |
|
31 | AppContact=mercurial@selenic.com | |
32 | OutputBaseFilename=Mercurial-{#VERSION} |
|
32 | OutputBaseFilename=Mercurial-{#VERSION} | |
33 | DefaultDirName={pf}\Mercurial |
|
33 | DefaultDirName={pf}\Mercurial | |
34 | SourceDir=..\.. |
|
34 | SourceDir=..\.. | |
35 | VersionInfoDescription=Mercurial distributed SCM (version {#VERSION}) |
|
35 | VersionInfoDescription=Mercurial distributed SCM (version {#VERSION}) | |
36 | VersionInfoCopyright=Copyright 2005-2010 Matt Mackall and others |
|
36 | VersionInfoCopyright=Copyright 2005-2010 Matt Mackall and others | |
37 | VersionInfoCompany=Matt Mackall and others |
|
37 | VersionInfoCompany=Matt Mackall and others | |
38 | InternalCompressLevel=max |
|
38 | InternalCompressLevel=max | |
39 | SolidCompression=true |
|
39 | SolidCompression=true | |
40 | SetupIconFile=contrib\win32\mercurial.ico |
|
40 | SetupIconFile=contrib\win32\mercurial.ico | |
41 | AllowNoIcons=true |
|
41 | AllowNoIcons=true | |
42 | DefaultGroupName=Mercurial |
|
42 | DefaultGroupName=Mercurial | |
43 | PrivilegesRequired=none |
|
43 | PrivilegesRequired=none | |
44 |
|
44 | |||
45 | [Files] |
|
45 | [Files] | |
46 | Source: contrib\mercurial.el; DestDir: {app}/Contrib |
|
46 | Source: contrib\mercurial.el; DestDir: {app}/Contrib | |
47 | Source: contrib\vim\*.*; DestDir: {app}/Contrib/Vim |
|
47 | Source: contrib\vim\*.*; DestDir: {app}/Contrib/Vim | |
48 | Source: contrib\zsh_completion; DestDir: {app}/Contrib |
|
48 | Source: contrib\zsh_completion; DestDir: {app}/Contrib | |
49 | Source: contrib\bash_completion; DestDir: {app}/Contrib |
|
49 | Source: contrib\bash_completion; DestDir: {app}/Contrib | |
50 | Source: contrib\tcsh_completion; DestDir: {app}/Contrib |
|
50 | Source: contrib\tcsh_completion; DestDir: {app}/Contrib | |
51 | Source: contrib\tcsh_completion_build.sh; DestDir: {app}/Contrib |
|
51 | Source: contrib\tcsh_completion_build.sh; DestDir: {app}/Contrib | |
52 | Source: contrib\hgk; DestDir: {app}/Contrib; DestName: hgk.tcl |
|
52 | Source: contrib\hgk; DestDir: {app}/Contrib; DestName: hgk.tcl | |
53 | Source: contrib\xml.rnc; DestDir: {app}/Contrib |
|
53 | Source: contrib\xml.rnc; DestDir: {app}/Contrib | |
54 | Source: contrib\shrink-revlog.py; DestDir: {app}/Contrib |
|
54 | Source: contrib\shrink-revlog.py; DestDir: {app}/Contrib | |
55 | Source: contrib\mercurial.el; DestDir: {app}/Contrib |
|
55 | Source: contrib\mercurial.el; DestDir: {app}/Contrib | |
56 | Source: contrib\mq.el; DestDir: {app}/Contrib |
|
56 | Source: contrib\mq.el; DestDir: {app}/Contrib | |
57 | Source: contrib\hgweb.fcgi; DestDir: {app}/Contrib |
|
57 | Source: contrib\hgweb.fcgi; DestDir: {app}/Contrib | |
58 | Source: contrib\hgweb.wsgi; DestDir: {app}/Contrib |
|
58 | Source: contrib\hgweb.wsgi; DestDir: {app}/Contrib | |
59 | Source: contrib\win32\ReadMe.html; DestDir: {app}; Flags: isreadme |
|
59 | Source: contrib\win32\ReadMe.html; DestDir: {app}; Flags: isreadme | |
60 | Source: contrib\mergetools.hgrc; DestDir: {tmp}; |
|
60 | Source: contrib\mergetools.hgrc; DestDir: {tmp}; | |
61 | Source: contrib\win32\mercurial.ini; DestDir: {app}; DestName: Mercurial.ini; Check: CheckFile; AfterInstall: ConcatenateFiles; |
|
61 | Source: contrib\win32\mercurial.ini; DestDir: {app}; DestName: Mercurial.ini; Check: CheckFile; AfterInstall: ConcatenateFiles; | |
62 | Source: contrib\win32\postinstall.txt; DestDir: {app}; DestName: ReleaseNotes.txt |
|
62 | Source: contrib\win32\postinstall.txt; DestDir: {app}; DestName: ReleaseNotes.txt | |
63 | Source: dist\hg.exe; DestDir: {app}; AfterInstall: Touch('{app}\hg.exe.local') |
|
63 | Source: dist\hg.exe; DestDir: {app}; AfterInstall: Touch('{app}\hg.exe.local') | |
64 | Source: dist\python*.dll; Destdir: {app}; Flags: skipifsourcedoesntexist |
|
64 | Source: dist\python*.dll; Destdir: {app}; Flags: skipifsourcedoesntexist | |
65 | Source: dist\library.zip; DestDir: {app} |
|
65 | Source: dist\library.zip; DestDir: {app} | |
66 | Source: dist\mfc*.dll; DestDir: {app}; Flags: skipifsourcedoesntexist |
|
|||
67 | Source: dist\msvc*.dll; DestDir: {app}; Flags: skipifsourcedoesntexist |
|
66 | Source: dist\msvc*.dll; DestDir: {app}; Flags: skipifsourcedoesntexist | |
68 | Source: dist\Microsoft.VC*.CRT.manifest; DestDir: {app}; Flags: skipifsourcedoesntexist |
|
67 | Source: dist\Microsoft.VC*.CRT.manifest; DestDir: {app}; Flags: skipifsourcedoesntexist | |
69 | Source: dist\Microsoft.VC*.MFC.manifest; DestDir: {app}; Flags: skipifsourcedoesntexist |
|
|||
70 | Source: dist\w9xpopen.exe; DestDir: {app} |
|
68 | Source: dist\w9xpopen.exe; DestDir: {app} | |
71 | Source: dist\add_path.exe; DestDir: {app} |
|
69 | Source: dist\add_path.exe; DestDir: {app} | |
72 | Source: doc\*.html; DestDir: {app}\Docs |
|
70 | Source: doc\*.html; DestDir: {app}\Docs | |
73 | Source: doc\style.css; DestDir: {app}\Docs |
|
71 | Source: doc\style.css; DestDir: {app}\Docs | |
74 | Source: mercurial\help\*.txt; DestDir: {app}\help |
|
72 | Source: mercurial\help\*.txt; DestDir: {app}\help | |
75 | Source: mercurial\locale\*.*; DestDir: {app}\locale; Flags: recursesubdirs createallsubdirs |
|
73 | Source: mercurial\locale\*.*; DestDir: {app}\locale; Flags: recursesubdirs createallsubdirs skipifsourcedoesntexist | |
76 | Source: mercurial\templates\*.*; DestDir: {app}\Templates; Flags: recursesubdirs createallsubdirs |
|
74 | Source: mercurial\templates\*.*; DestDir: {app}\Templates; Flags: recursesubdirs createallsubdirs | |
77 | Source: CONTRIBUTORS; DestDir: {app}; DestName: Contributors.txt |
|
75 | Source: CONTRIBUTORS; DestDir: {app}; DestName: Contributors.txt | |
78 | Source: COPYING; DestDir: {app}; DestName: Copying.txt |
|
76 | Source: COPYING; DestDir: {app}; DestName: Copying.txt | |
79 |
|
77 | |||
80 | [INI] |
|
78 | [INI] | |
81 | Filename: {app}\Mercurial.url; Section: InternetShortcut; Key: URL; String: http://mercurial.selenic.com/ |
|
79 | Filename: {app}\Mercurial.url; Section: InternetShortcut; Key: URL; String: http://mercurial.selenic.com/ | |
82 |
|
80 | |||
83 | [UninstallDelete] |
|
81 | [UninstallDelete] | |
84 | Type: files; Name: {app}\Mercurial.url |
|
82 | Type: files; Name: {app}\Mercurial.url | |
85 | Type: files; Name: {app}\Contrib\shrink-revlog.pyc |
|
83 | Type: files; Name: {app}\Contrib\shrink-revlog.pyc | |
86 |
|
84 | |||
87 | [Icons] |
|
85 | [Icons] | |
88 | Name: {group}\Uninstall Mercurial; Filename: {uninstallexe} |
|
86 | Name: {group}\Uninstall Mercurial; Filename: {uninstallexe} | |
89 | Name: {group}\Mercurial Command Reference; Filename: {app}\Docs\hg.1.html |
|
87 | Name: {group}\Mercurial Command Reference; Filename: {app}\Docs\hg.1.html | |
90 | Name: {group}\Mercurial Configuration Files; Filename: {app}\Docs\hgrc.5.html |
|
88 | Name: {group}\Mercurial Configuration Files; Filename: {app}\Docs\hgrc.5.html | |
91 | Name: {group}\Mercurial Ignore Files; Filename: {app}\Docs\hgignore.5.html |
|
89 | Name: {group}\Mercurial Ignore Files; Filename: {app}\Docs\hgignore.5.html | |
92 | Name: {group}\Mercurial Web Site; Filename: {app}\Mercurial.url |
|
90 | Name: {group}\Mercurial Web Site; Filename: {app}\Mercurial.url | |
93 |
|
91 | |||
94 | [Run] |
|
92 | [Run] | |
95 | Filename: "{app}\add_path.exe"; Parameters: "{app}"; Flags: postinstall; Description: "Add the installation path to the search path" |
|
93 | Filename: "{app}\add_path.exe"; Parameters: "{app}"; Flags: postinstall; Description: "Add the installation path to the search path" | |
96 |
|
94 | |||
97 | [UninstallRun] |
|
95 | [UninstallRun] | |
98 | Filename: "{app}\add_path.exe"; Parameters: "/del {app}" |
|
96 | Filename: "{app}\add_path.exe"; Parameters: "/del {app}" | |
99 |
|
97 | |||
100 | [UninstallDelete] |
|
98 | [UninstallDelete] | |
101 | Type: files; Name: "{app}\hg.exe.local" |
|
99 | Type: files; Name: "{app}\hg.exe.local" | |
|
100 | ||||
102 | [Code] |
|
101 | [Code] | |
103 | var |
|
102 | var | |
104 | WriteFile: Boolean; |
|
103 | WriteFile: Boolean; | |
105 | CheckDone: Boolean; |
|
104 | CheckDone: Boolean; | |
106 |
|
105 | |||
107 | function CheckFile(): Boolean; |
|
106 | function CheckFile(): Boolean; | |
108 | begin |
|
107 | begin | |
109 | if not CheckDone then begin |
|
108 | if not CheckDone then begin | |
110 | WriteFile := True; |
|
109 | WriteFile := True; | |
111 | if FileExists(ExpandConstant(CurrentFileName)) then begin |
|
110 | if FileExists(ExpandConstant(CurrentFileName)) then begin | |
112 | WriteFile := MsgBox('' + ExpandConstant(CurrentFileName) + '' #13#13 'The file already exists.' #13#13 'Would you like Setup to overwrite it?', mbConfirmation, MB_YESNO) = idYes; |
|
111 | WriteFile := MsgBox('' + ExpandConstant(CurrentFileName) + '' #13#13 'The file already exists.' #13#13 'Would you like Setup to overwrite it?', mbConfirmation, MB_YESNO) = idYes; | |
113 | end; |
|
112 | end; | |
114 | CheckDone := True; |
|
113 | CheckDone := True; | |
115 | end; |
|
114 | end; | |
116 | Result := WriteFile; |
|
115 | Result := WriteFile; | |
117 | end; |
|
116 | end; | |
118 |
|
117 | |||
119 | procedure ConcatenateFiles(); |
|
118 | procedure ConcatenateFiles(); | |
120 | var |
|
119 | var | |
121 | MergeConfigs: TArrayOfString; |
|
120 | MergeConfigs: TArrayOfString; | |
122 | begin |
|
121 | begin | |
123 | if LoadStringsFromFile(ExpandConstant('{tmp}\mergetools.hgrc'),MergeConfigs) then begin |
|
122 | if LoadStringsFromFile(ExpandConstant('{tmp}\mergetools.hgrc'),MergeConfigs) then begin | |
124 | SaveStringsToFile(ExpandConstant(CurrentFileName),MergeConfigs,True); |
|
123 | SaveStringsToFile(ExpandConstant(CurrentFileName),MergeConfigs,True); | |
125 | end; |
|
124 | end; | |
126 | end; |
|
125 | end; | |
127 |
|
126 | |||
128 | procedure Touch(fn: String); |
|
127 | procedure Touch(fn: String); | |
129 | begin |
|
128 | begin | |
130 | SaveStringToFile(ExpandConstant(fn), '', False); |
|
129 | SaveStringToFile(ExpandConstant(fn), '', False); | |
131 | end; |
|
130 | end; |
@@ -1,114 +1,115 b'' | |||||
1 | The standalone Windows installer for Mercurial is built in a somewhat |
|
1 | The standalone Windows installer for Mercurial is built in a somewhat | |
2 | jury-rigged fashion. |
|
2 | jury-rigged fashion. | |
3 |
|
3 | |||
4 | It has the following prerequisites, at least as I build it: |
|
4 | It has the following prerequisites, at least as I build it: | |
5 |
|
5 | |||
6 | Python for Windows |
|
6 | Python 2.6 for Windows | |
7 | http://www.python.org/ftp/python/2.4.3/python-2.4.3.msi |
|
7 | http://www.python.org/download/releases/ | |
8 |
|
8 | |||
9 | MinGW |
|
9 | A compiler: | |
|
10 | either MinGW | |||
10 | http://www.mingw.org/ |
|
11 | http://www.mingw.org/ | |
|
12 | or Microsoft Visual C++ 2008 SP1 Express Edition | |||
|
13 | http://www.microsoft.com/express/Downloads/Download-2008.aspx | |||
11 |
|
14 | |||
12 | Python for Windows Extensions |
|
15 | Python for Windows Extensions | |
13 | http://sourceforge.net/projects/pywin32/ |
|
16 | http://sourceforge.net/projects/pywin32/ | |
14 |
|
17 | |||
15 | mfc71.dll (just download, don't install; not needed for Python 2.6) |
|
18 | mfc71.dll (just download, don't install; not needed for Python 2.6) | |
16 | http://starship.python.net/crew/mhammond/win32/ |
|
19 | http://starship.python.net/crew/mhammond/win32/ | |
17 |
|
20 | |||
18 | Visual C++ 2008 redistributable package (needed for Python 2.6) |
|
21 | Visual C++ 2008 SP1 redistributable package (needed for >= Python 2.6 or if you compile with MSVC) | |
19 |
http://www.microsoft.com/downloads/details.aspx? |
|
22 | http://www.microsoft.com/downloads/details.aspx?FamilyID=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2 | |
20 |
|
23 | |||
21 | The py2exe distutils extension |
|
24 | The py2exe distutils extension | |
22 | http://sourceforge.net/projects/py2exe/ |
|
25 | http://sourceforge.net/projects/py2exe/ | |
23 |
|
26 | |||
24 | GnuWin32 gettext utility |
|
27 | GnuWin32 gettext utility (if you want to build translations) | |
25 | http://gnuwin32.sourceforge.net/packages/gettext.htm |
|
28 | http://gnuwin32.sourceforge.net/packages/gettext.htm | |
26 |
|
29 | |||
27 | Inno Setup |
|
30 | Inno Setup | |
28 | http://www.jrsoftware.org/isdl.php#qsp |
|
31 | http://www.jrsoftware.org/isdl.php#qsp | |
29 |
|
32 | |||
30 |
Get and install ispack-5.3. |
|
33 | Get and install ispack-5.3.10.exe which includes Inno Setup Processor, | |
31 | which is necessary to package Mercurial. |
|
34 | which is necessary to package Mercurial. | |
32 |
|
35 | |||
33 | ISTool - optional |
|
36 | ISTool - optional | |
34 | http://www.istool.org/default.aspx/ |
|
37 | http://www.istool.org/default.aspx/ | |
35 |
|
38 | |||
36 | add_path (you need only add_path.exe in the zip file) |
|
39 | add_path (you need only add_path.exe in the zip file) | |
37 | http://www.barisione.org/apps.html#add_path |
|
40 | http://www.barisione.org/apps.html#add_path | |
38 |
|
41 | |||
39 | Docutils |
|
42 | Docutils | |
40 | http://docutils.sourceforge.net/ |
|
43 | http://docutils.sourceforge.net/ | |
41 |
|
44 | |||
42 | And, of course, Mercurial itself. |
|
45 | And, of course, Mercurial itself. | |
43 |
|
46 | |||
44 | Once you have all this installed and built, clone a copy of the |
|
47 | Once you have all this installed and built, clone a copy of the | |
45 | Mercurial repository you want to package, and name the repo |
|
48 | Mercurial repository you want to package, and name the repo | |
46 | C:\hg\hg-release. |
|
49 | C:\hg\hg-release. | |
47 |
|
50 | |||
48 |
In a shell, build a standalone copy of the hg.exe program |
|
51 | In a shell, build a standalone copy of the hg.exe program. | |
49 |
|
52 | |||
|
53 | Building instructions for MinGW: | |||
50 | python setup.py build -c mingw32 |
|
54 | python setup.py build -c mingw32 | |
51 |
python setup.py py2exe -b |
|
55 | python setup.py py2exe -b 2 | |
52 |
|
||||
53 | Note: the previously suggested combined command of "python setup.py build -c |
|
56 | Note: the previously suggested combined command of "python setup.py build -c | |
54 |
mingw32 py2exe -b |
|
57 | mingw32 py2exe -b 2" doesn't work correctly anymore as it doesn't include the | |
55 | extensions in the mercurial subdirectory. |
|
58 | extensions in the mercurial subdirectory. | |
56 |
|
||||
57 | If you want to create a file named setup.cfg with the contents: |
|
59 | If you want to create a file named setup.cfg with the contents: | |
58 |
|
||||
59 | [build] |
|
60 | [build] | |
60 | compiler=mingw32 |
|
61 | compiler=mingw32 | |
|
62 | you can skip the first build step. | |||
61 |
|
63 | |||
62 | you can skip the first build step. |
|
64 | Building instructions with MSVC 2008 SP1 Express Edition: | |
|
65 | python setup.py py2exe -b 2 | |||
63 |
|
66 | |||
64 | Copy add_path.exe into the dist directory that just got created. |
|
67 | Copy add_path.exe into the dist directory that just got created. | |
65 |
|
68 | |||
66 | If you are using Python up to version 2.5.4, copy mfc71.dll into the dist |
|
69 | If you are using Python up to version 2.5.4, copy mfc71.dll into the dist | |
67 | directory that just got created. |
|
70 | directory that just got created. | |
68 |
|
71 | |||
69 |
If you are using Python 2.6 or later, |
|
72 | If you are using Python 2.6 or later, or if you are using MSVC 2008 to compile | |
70 | redistributable package copy into the dist directory that just got created the |
|
73 | mercurial, you must include the C runtime libraries in the installer. To do so, | |
71 | following files: |
|
74 | install the Visual C++ 2008 SP1 redistributable package. Then in your | |
72 | - from the directory starting with |
|
75 | windows\winsxs folder, locate the folder containing the dlls version 9.0.30729. | |
73 | Windows/WinSxS/x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8 |
|
76 | For x86, it should be named like x86_Microsoft.VC90.CRT_(...)_9.0.30729(...). | |
74 |
|
|
77 | Copy the files named msvcm90.dll, msvcp90.dll and msvcr90.dll into the dist | |
75 | - from the directory starting with |
|
78 | directory. | |
76 | Windows/WinSxS/x86_Microsoft.VC90.MFC_1fc8b3b9a1e18e3b_9.0.21022.8 |
|
79 | Then in the windows\winsxs\manifests folder, locate the corresponding manifest | |
77 | the files named: mfc90.dll, mfc90u.dll, mfcm90.dll and mfcm90u.dll |
|
80 | file (x86_Microsoft.VC90.CRT_(...)_9.0.30729(...).manifest for x86), copy it in | |
78 | - from the directory named Windows/WinSxS/Manifests, the manifest file |
|
81 | the dist directory and rename it to Microsoft.VC90.CRT.manifest. | |
79 | starting with x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8 |
|
|||
80 | (rename it to Microsoft.VC90.CRT.manifest) and the manifest file starting |
|
|||
81 | with x86_Microsoft.VC90.MFC_1fc8b3b9a1e18e3b_9.0.21022.8 (rename it to |
|
|||
82 | Microsoft.VC90.MFC.manifest) |
|
|||
83 |
|
82 | |||
84 | Before building the installer, you have to build Mercurial HTML documentation |
|
83 | Before building the installer, you have to build Mercurial HTML documentation | |
85 | (or fix mercurial.iss to not reference the doc directory): |
|
84 | (or fix mercurial.iss to not reference the doc directory): | |
86 |
|
85 | |||
87 | cd doc |
|
86 | cd doc | |
88 | mingw32-make html |
|
87 | mingw32-make html | |
89 | cd .. |
|
88 | cd .. | |
90 |
|
89 | |||
91 | If you use ISTool, you open the C:\hg\hg-release\contrib\win32\mercurial.iss |
|
90 | If you use ISTool, you open the C:\hg\hg-release\contrib\win32\mercurial.iss | |
92 | file and type Ctrl-F9 to compile the installer file. |
|
91 | file and type Ctrl-F9 to compile the installer file. | |
93 |
|
92 | |||
94 | Otherwise you run the Inno Setup compiler. Assuming it's in the path |
|
93 | Otherwise you run the Inno Setup compiler. Assuming it's in the path | |
95 | you should execute: |
|
94 | you should execute: | |
96 |
|
95 | |||
97 |
iscc contrib\win32\mercurial.iss / |
|
96 | iscc contrib\win32\mercurial.iss /dVERSION=foo | |
98 |
|
97 | |||
99 | Where 'foo' is the version number you would like to see in the |
|
98 | Where 'foo' is the version number you would like to see in the | |
100 | 'Add/Remove Applications' tool. The installer will be placed into |
|
99 | 'Add/Remove Applications' tool. The installer will be placed into | |
101 | a directory named Output/ at the root of your repository. |
|
100 | a directory named Output/ at the root of your repository. | |
|
101 | If the /dVERSION=foo parameter is not given in the command line, the | |||
|
102 | installer will retrieve the version information from the __version__.py file. | |||
102 |
|
103 | |||
103 | 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 | |
104 | following: |
|
105 | following (MinGW build chain): | |
105 |
|
106 | |||
106 | echo [build] > setup.cfg |
|
107 | echo [build] > setup.cfg | |
107 | echo compiler=mingw32 >> setup.cfg |
|
108 | echo compiler=mingw32 >> setup.cfg | |
108 |
python setup.py py2exe -b |
|
109 | python setup.py py2exe -b 2 | |
109 | cd doc |
|
110 | cd doc | |
110 | mingw32-make html |
|
111 | mingw32-make html | |
111 | cd .. |
|
112 | cd .. | |
112 |
iscc contrib\win32\mercurial.iss / |
|
113 | iscc contrib\win32\mercurial.iss /dVERSION=snapshot | |
113 |
|
114 | |||
114 | 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). |
General Comments 0
You need to be logged in to leave comments.
Login now