]> git.lizzy.rs Git - rust.git/blob - src/etc/pkg/rust.iss
auto merge of #19628 : jbranchaud/rust/add-string-as-string-doctest, r=steveklabnik
[rust.git] / src / etc / pkg / rust.iss
1 #define CFG_VERSION_WIN GetEnv("CFG_VERSION_WIN")
2 #define CFG_RELEASE GetEnv("CFG_RELEASE")
3 #define CFG_PACKAGE_NAME GetEnv("CFG_PACKAGE_NAME")
4 #define CFG_BUILD GetEnv("CFG_BUILD")
5
6 [Setup]
7
8 SetupIconFile=rust-logo.ico
9 AppName=Rust
10 AppVersion={#CFG_RELEASE}
11 AppCopyright=Copyright (C) 2006-2014 Mozilla Foundation, MIT license
12 AppPublisher=Mozilla Foundation
13 AppPublisherURL=http://www.rust-lang.org
14 VersionInfoVersion={#CFG_VERSION_WIN}
15 LicenseFile=LICENSE.txt
16
17 PrivilegesRequired=lowest
18 DisableWelcomePage=true
19 DisableProgramGroupPage=true
20 DisableReadyPage=true
21 DisableStartupPrompt=true
22
23 OutputDir=.\dist\
24 SourceDir=.\
25 OutputBaseFilename={#CFG_PACKAGE_NAME}-{#CFG_BUILD}
26 DefaultDirName={pf32}\Rust
27
28 Compression=lzma2/ultra
29 InternalCompressLevel=ultra
30 SolidCompression=true
31
32 ChangesEnvironment=true
33 ChangesAssociations=no
34 AllowUNCPath=false
35 AllowNoIcons=true
36 Uninstallable=yes
37
38 [Tasks]
39 Name: modifypath; Description: &Add {app}\bin to your PATH (recommended)
40
41 [Components]
42 Name: rust; Description: "Rust compiler and standard crates"; Types: full compact custom; Flags: fixed
43 Name: gcc; Description: "Linker and platform libraries"; Types: full
44
45 [Files]
46 Source: "tmp/dist/win/rust/*.*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs; Components: rust
47 Source: "tmp/dist/win/gcc/*.*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs; Components: gcc
48
49 [Code]
50 const
51         ModPathName = 'modifypath';
52         ModPathType = 'system';
53
54 function ModPathDir(): TArrayOfString;
55 begin
56         setArrayLength(Result, 1)
57         Result[0] := ExpandConstant('{app}\bin');
58 end;
59
60 #include "modpath.iss"
61 #include "upgrade.iss"
62
63 // Both modpath.iss and upgrade.iss want to overload CurStepChanged.
64 // This version does the overload then delegates to each.
65
66 procedure CurStepChanged(CurStep: TSetupStep);
67 begin
68   UpgradeCurStepChanged(CurStep);
69   ModPathCurStepChanged(CurStep);
70 end;