##// END OF EJS Templates
iss: take version from iscc command line or __version__.py...
Steve Borho -
r9356:9488a4d6 default
parent child Browse files
Show More
@@ -1,9 +1,25 b''
1 1 ; Script generated by the Inno Setup Script Wizard.
2 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 19 [Setup]
4 20 AppCopyright=Copyright 2005-2009 Matt Mackall and others
5 21 AppName=Mercurial
6 AppVerName=Mercurial snapshot
22 AppVerName=Mercurial {#VERSION}
7 23 InfoAfterFile=contrib/win32/postinstall.txt
8 24 LicenseFile=COPYING
9 25 ShowLanguageDialog=yes
@@ -13,10 +29,10 b' AppSupportURL=http://mercurial.selenic.c'
13 29 AppUpdatesURL=http://mercurial.selenic.com/
14 30 AppID={{4B95A5F1-EF59-4B08-BED8-C891C46121B3}
15 31 AppContact=mercurial@selenic.com
16 OutputBaseFilename=Mercurial-snapshot
32 OutputBaseFilename=Mercurial-{#VERSION}
17 33 DefaultDirName={pf}\Mercurial
18 34 SourceDir=..\..
19 VersionInfoDescription=Mercurial distributed SCM
35 VersionInfoDescription=Mercurial distributed SCM (version {#VERSION})
20 36 VersionInfoCopyright=Copyright 2005-2009 Matt Mackall and others
21 37 VersionInfoCompany=Matt Mackall and others
22 38 InternalCompressLevel=max
@@ -25,7 +25,10 b' It has the following prerequisites, at l'
25 25 http://gnuwin32.sourceforge.net/packages/gettext.htm
26 26
27 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 33 ISTool - optional
31 34 http://www.istool.org/default.aspx/
@@ -89,11 +92,14 b' Before building the installer, you have '
89 92 If you use ISTool, you open the C:\hg\hg-release\contrib\win32\mercurial.iss
90 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 104 To automate the steps above you may want to create a batchfile based on the
99 105 following:
@@ -104,6 +110,6 b' following:'
104 110 cd doc
105 111 mingw32-make ASCIIDOC=asciidoc.bat html
106 112 cd ..
107 iscc contrib\win32\mercurial.iss
113 iscc contrib\win32\mercurial.iss /DVERSION=snapshot
108 114
109 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