##// END OF EJS Templates
Merge with crew-stable
Steve Borho -
r9358:baebf028 merge default
parent child Browse files
Show More
@@ -1,9 +1,25
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
4 #ifndef VERSION
5 #define FileHandle
6 #define FileLine
7 #define VERSION = "unknown"
8 #if FileHandle = FileOpen(SourcePath + "\..\..\mercurial\__version__.py")
9 #expr FileLine = FileRead(FileHandle)
10 #expr FileLine = FileRead(FileHandle)
11 #define VERSION = Copy(FileLine, Pos('"', FileLine)+1, Len(FileLine)-Pos('"', FileLine)-1)
12 #endif
13 #if FileHandle
14 #expr FileClose(FileHandle)
15 #endif
16 #pragma message "Detected Version: " + VERSION
17 #endif
18
3 [Setup]
19 [Setup]
4 AppCopyright=Copyright 2005-2009 Matt Mackall and others
20 AppCopyright=Copyright 2005-2009 Matt Mackall and others
5 AppName=Mercurial
21 AppName=Mercurial
6 AppVerName=Mercurial snapshot
22 AppVerName=Mercurial {#VERSION}
7 InfoAfterFile=contrib/win32/postinstall.txt
23 InfoAfterFile=contrib/win32/postinstall.txt
8 LicenseFile=COPYING
24 LicenseFile=COPYING
9 ShowLanguageDialog=yes
25 ShowLanguageDialog=yes
@@ -13,10 +29,10 AppSupportURL=http://mercurial.selenic.c
13 AppUpdatesURL=http://mercurial.selenic.com/
29 AppUpdatesURL=http://mercurial.selenic.com/
14 AppID={{4B95A5F1-EF59-4B08-BED8-C891C46121B3}
30 AppID={{4B95A5F1-EF59-4B08-BED8-C891C46121B3}
15 AppContact=mercurial@selenic.com
31 AppContact=mercurial@selenic.com
16 OutputBaseFilename=Mercurial-snapshot
32 OutputBaseFilename=Mercurial-{#VERSION}
17 DefaultDirName={pf}\Mercurial
33 DefaultDirName={pf}\Mercurial
18 SourceDir=..\..
34 SourceDir=..\..
19 VersionInfoDescription=Mercurial distributed SCM
35 VersionInfoDescription=Mercurial distributed SCM (version {#VERSION})
20 VersionInfoCopyright=Copyright 2005-2009 Matt Mackall and others
36 VersionInfoCopyright=Copyright 2005-2009 Matt Mackall and others
21 VersionInfoCompany=Matt Mackall and others
37 VersionInfoCompany=Matt Mackall and others
22 InternalCompressLevel=max
38 InternalCompressLevel=max
@@ -38,8 +54,8 Source: contrib\win32\postinstall.txt; D
38 Source: dist\hg.exe; DestDir: {app}; AfterInstall: Touch('{app}\hg.exe.local')
54 Source: dist\hg.exe; DestDir: {app}; AfterInstall: Touch('{app}\hg.exe.local')
39 Source: dist\python*.dll; Destdir: {app}; Flags: skipifsourcedoesntexist
55 Source: dist\python*.dll; Destdir: {app}; Flags: skipifsourcedoesntexist
40 Source: dist\library.zip; DestDir: {app}
56 Source: dist\library.zip; DestDir: {app}
41 Source: dist\mfc*.dll; DestDir: {app}
57 Source: dist\mfc*.dll; DestDir: {app}; Flags: skipifsourcedoesntexist
42 Source: dist\msvc*.dll; DestDir: {app}
58 Source: dist\msvc*.dll; DestDir: {app}; Flags: skipifsourcedoesntexist
43 Source: dist\Microsoft.VC*.CRT.manifest; DestDir: {app}; Flags: skipifsourcedoesntexist
59 Source: dist\Microsoft.VC*.CRT.manifest; DestDir: {app}; Flags: skipifsourcedoesntexist
44 Source: dist\Microsoft.VC*.MFC.manifest; DestDir: {app}; Flags: skipifsourcedoesntexist
60 Source: dist\Microsoft.VC*.MFC.manifest; DestDir: {app}; Flags: skipifsourcedoesntexist
45 Source: dist\w9xpopen.exe; DestDir: {app}
61 Source: dist\w9xpopen.exe; DestDir: {app}
@@ -25,7 +25,10 It has the following prerequisites, at l
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/
@@ -94,11 +97,14 Then build the documentation with:
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:
@@ -109,6 +115,6 following:
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).
General Comments 0
You need to be logged in to leave comments. Login now