56
56
57
57
#define Runtime " {app} \runtime"
58
58
#define Bin Runtime + " \bin"
59
- #define SageRootWin Runtime + " \opt\sagemath-" + MyAppVersion
59
+ #define SageRoot " \opt\sagemath-" + MyAppVersion
60
+ #define SageRootWin Runtime + SageRoot
60
61
#define SageRootPosix " /opt/sagemath-" + MyAppVersion
61
62
63
+ #define SageDoc SageRoot + " \local\share\doc\sage\html"
64
+
62
65
[Setup]
63
66
AppCopyright = {#MyAppPublisher}
64
67
AppId = {#MyAppName }-{#MyAppVersion}
@@ -79,6 +82,7 @@ DisableWelcomePage=no
79
82
DiskSpanning = {#DiskSpanning}
80
83
OutputDir = {#OutputDir}
81
84
OutputBaseFilename = {#MyAppName }-{#MyAppVersion}-Installer-v{#InstallerVersion}
85
+ OutputManifestFile = SageMath-Manifest.txt
82
86
PrivilegesRequired = lowest
83
87
Compression = {#Compression}
84
88
SolidCompression = yes
@@ -94,14 +98,23 @@ LicenseFile="{#Source}\opt\sagemath-{#SageVersion}\COPYING.txt"
94
98
[Languages]
95
99
Name : " english" ; MessagesFile : " compiler:Default.isl"
96
100
101
+ [Types]
102
+ Name : " full" ; Description : " Full installation"
103
+ Name : " custom" ; Description : " Custom installation" ; Flags : iscustom
104
+
105
+ [Components]
106
+ Name : " sage" ; Description : " SageMath Core" ; Types : full custom ; Flags : fixed
107
+ Name : " sagedoc" ; Description : " SageMath HTML Documentation" ; Types : full
108
+
97
109
[Tasks]
98
110
Name : startmenu; Description : " Create &start menu icons" ; GroupDescription: " Additional icons"
99
111
Name : desktop; Description : " Create &desktop icons" ; GroupDescription: " Additional icons"
100
112
101
113
[Files]
102
- Source : " dot_sage\*" ; DestDir : " {#SageRootWin}\dot_sage" ; Flags : recursesubdirs ignoreversion
103
- Source : " {#Source}\*" ; DestDir : " {#Runtime}" ; Excludes: " {#SageExcludes}" ; Flags : recursesubdirs ignoreversion
104
- Source : " resources\sagemath.ico" ; DestDir : " {app} " ; Flags : ignoreversion ; AfterInstall : PostInstall
114
+ Source : " dot_sage\*" ; DestDir : " {#SageRootWin}\dot_sage" ; Flags : recursesubdirs ignoreversion ; Components : sage
115
+ Source : " {#Source}\*" ; DestDir : " {#Runtime}" ; Excludes: " {#SageExcludes},{#SageDoc}" ; Flags : recursesubdirs ignoreversion ; Components : sage
116
+ Source : " {#Source}{#SageDoc}\*" ; DestDir : " {#Runtime}" ; Flags : recursesubdirs ignoreversion ; Components : sagedoc
117
+ Source : " resources\sagemath.ico" ; DestDir : " {app} " ; Flags : ignoreversion ; AfterInstall : PostInstall ; Components : sage
105
118
106
119
; InnoSetup will not create empty directories found when including files
107
120
; recursively in the [Files] section, so any directories that must exist
@@ -125,7 +138,7 @@ Name: "{#Runtime}\home\sage"; Permissions: users-modify
125
138
Type : filesandordirs ; Name : " {#Runtime}\etc\fstab.d"
126
139
Type : filesandordirs ; Name : " {#Runtime}\dev\shm"
127
140
Type : filesandordirs ; Name : " {#Runtime}\dev\mqueue"
128
- Type : files ; Name : " {#Runtime}\*.stackdump
141
+ Type : files ; Name : " {#Runtime}\*.stackdump"
129
142
130
143
#define RunSage " /bin/bash --login -c '" + SageRootPosix + " /sage'"
131
144
#define RunSageName " SageMath " + SageVersion
0 commit comments