~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/win32/bzr.iss.cog

  • Committer: John Arbash Meinel
  • Date: 2007-11-13 20:37:09 UTC
  • mto: This revision was merged to the branch mainline in revision 3001.
  • Revision ID: john@arbash-meinel.com-20071113203709-kysdte0emqv84pnj
Fix bug #162486, by having RemoteBranch properly initialize self._revision_id_to_revno_map.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; Script for Inno Setup installer
 
2
; [[[cog cog.outl('; This script created by Cog from bzr.iss.cog source') ]]]
 
3
; [[[end]]]
 
4
; Cog is http://www.nedbatchelder.com/code/cog/
 
5
 
 
6
[Setup]
 
7
AppName=Bazaar
 
8
 
 
9
; [[[cog
 
10
; # Python 2.5 compatibility code
 
11
; import os
 
12
; import sys
 
13
; cwd = os.getcwd()
 
14
; if cwd not in sys.path:
 
15
;     sys.path.insert(0, cwd)
 
16
; #/Python 2.5 compatibility code
 
17
;
 
18
; import bzrlib
 
19
; try: 
 
20
;     VERSION = bzrlib.__version__
 
21
;     AppVerName = 'Bazaar %s' % VERSION
 
22
;     OutputBaseFilename = 'bzr-setup-%s' % VERSION
 
23
; except:
 
24
;     VERSION = ''
 
25
;     AppVerName = 'Bazaar'
 
26
;     OutputBaseFilename = 'bzr-setup'
 
27
;
 
28
; cog.outl('AppVerName=%s' % AppVerName)
 
29
; cog.outl('OutputBaseFilename=%s' % OutputBaseFilename)
 
30
; ]]]
 
31
AppVerName=Bazaar
 
32
OutputBaseFilename=bzr-setup
 
33
; [[[end]]]
 
34
 
 
35
DefaultDirName={pf}\Bazaar
 
36
DefaultGroupName=Bazaar
 
37
 
 
38
SolidCompression=yes
 
39
 
 
40
OutputDir="..\"
 
41
SourceDir="..\..\win32_bzr.exe"
 
42
 
 
43
SetupIconFile="..\bzr.ico"
 
44
InfoBeforeFile="..\tools\win32\info.txt"
 
45
InfoAfterFile="..\tools\win32\survey.txt"
 
46
 
 
47
VersionInfoCompany="Canonical Ltd."
 
48
VersionInfoCopyright="Canonical Ltd., 2005-2007"
 
49
VersionInfoDescription="Installer for stand-alone bzr.exe"
 
50
; [[[cog
 
51
; import bzrlib
 
52
; version_number = []
 
53
; for i in bzrlib.version_info[:3]:
 
54
;     try:
 
55
;         i = int(i)
 
56
;     except ValueError:
 
57
;         i = 0
 
58
;     version_number.append(i)
 
59
; # incremental build number
 
60
; from tools.win32.file_version import *
 
61
; try:
 
62
;     version_prev = get_file_version(OutputBaseFilename + '.exe')
 
63
; except (FileNotFound, VersionNotAvailable):
 
64
;     pass
 
65
; else:
 
66
;     if version_number == list(version_prev[:3]):
 
67
;         version_number.append((version_prev[-1]+1) % 65536)
 
68
; version_str = '.'.join(str(i) for i in version_number)
 
69
; cog.outl('VersionInfoVersion="%s"' % version_str)
 
70
; ]]]
 
71
; [[[end]]]
 
72
 
 
73
AppComments="Bazaar: Friendly distributed version control system"
 
74
AppPublisher="Canonical Ltd."
 
75
AppPublisherURL="http://www.bazaar-vcs.org"
 
76
AppSupportURL="http://www.bazaar-vcs.org/BzrSupport"
 
77
AppUpdatesURL="http://www.bazaar-vcs.org/WindowsDownloads"
 
78
; [[[cog cog.outl('AppVersion=%s' % VERSION) ]]]
 
79
; [[[end]]]
 
80
 
 
81
ChangesEnvironment=yes
 
82
PrivilegesRequired=none
 
83
 
 
84
 
 
85
[Files]
 
86
Source: "*.*"; DestDir: "{app}"; Flags: ignoreversion;
 
87
Source: "lib\*.*"; DestDir: "{app}\lib"; Flags: createallsubdirs ignoreversion recursesubdirs;
 
88
Source: "doc\*.*"; DestDir: "{app}\doc"; Flags: createallsubdirs ignoreversion recursesubdirs;
 
89
; [[[cog
 
90
; try:
 
91
;     import pycurl
 
92
; except ImportError:
 
93
;     ca_path = None
 
94
; else:
 
95
;     supported = pycurl.version_info()[8]
 
96
;     if 'https' in supported:
 
97
;         from bzrlib.transport.http.ca_bundle import get_ca_path
 
98
;         ca_path = get_ca_path()
 
99
;         if ca_path:
 
100
;             cog.outl('Source: "%s"; DestDir: "{app}"; Components: cabundle' % ca_path)
 
101
;         else:
 
102
;             cog.msg('You have pycurl with SSL support, '
 
103
;                     'but CA Bundle (curl-ca-bundle.crt) not found!')
 
104
; ]]]
 
105
; [[[end]]]
 
106
 
 
107
 
 
108
[Components]
 
109
Name: "main"; Description: "Main Files"; Types: full compact custom; Flags: fixed
 
110
; [[[cog
 
111
; if ca_path:
 
112
;     cog.outl('Name: "cabundle"; '
 
113
;              'Description: "CA certificates for SSL support"; '
 
114
;              'Types: full custom')
 
115
; ]]]
 
116
; [[[end]]]
 
117
 
 
118
 
 
119
[Dirs]
 
120
Name: "{userappdata}\bazaar\2.0"
 
121
 
 
122
 
 
123
[Icons]
 
124
Name: "{group}\Documentation index"; Filename: "{app}\doc\index.html"; WorkingDir: "{app}\doc";
 
125
Name: "{group}\Bazaar Home Page"; Filename: "{app}\bazaar.url"; Comment: "http://www.bazaar-vcs.org";
 
126
Name: "{group}\Start Bzr in cmd shell"; Filename: "{cmd}"; Parameters: "/K start_bzr.bat"; WorkingDir: "{app}"; IconFilename: "{app}\bzr.exe"; Comment: "Open new Bzr session";
 
127
Name: "{group}\Uninstall Bazaar"; Filename: "{uninstallexe}"; IconFileName: "{sys}\shell32.dll"; IconIndex: 101; Comment: "Remove Bzr completely";
 
128
 
 
129
 
 
130
[Tasks]
 
131
Name: Path; Description: "Add {app} directory to PATH environment variable";
 
132
Name: Shell; Description: "Add Bzr context menu to shell"; Flags: unchecked
 
133
 
 
134
 
 
135
[Run]
 
136
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--start-bzr"; Flags: skipifdoesntexist runhidden;
 
137
; [[[cog
 
138
; import os
 
139
; if os.path.isfile('win32_bzr.exe/lib/win32ui.pyd'):   # pywin32 mfc wrapper
 
140
;     cog.outl('Filename: "{app}\bzr_postinstall.exe"; '
 
141
;              'Parameters: "--check-mfc71"; '
 
142
;              'Flags: skipifdoesntexist skipifsilent runhidden;')
 
143
; ]]]
 
144
; [[[end]]]
 
145
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--add-path"; Tasks: Path; Flags: skipifdoesntexist skipifsilent runhidden;
 
146
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--add-shell-menu"; Tasks: Shell; Flags: skipifdoesntexist skipifsilent runhidden;
 
147
 
 
148
 
 
149
[UninstallRun]
 
150
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--delete-path --delete-shell-menu --silent"; Flags: skipifdoesntexist runhidden;