blob: 74f140436a8fc03548a49174cb4910dd56f5cdd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<installer-gui-script minSpecVersion="1">
<title>{SharedFxBrandName} (x64)</title>
<background file="dotnetbackground.png" mime-type="image/png"/>
<options customize="never" require-scripts="false" />
<welcome file="welcome.html" mime-type="text/html" />
<conclusion file="conclusion.html" mime-type="text/html" />
<volume-check>
<allowed-os-versions>
<os-version min="10.13" />
</allowed-os-versions>
</volume-check>
<choices-outline>
<line choice="{SharedFxComponentId}.pkg" />
<line choice="{SharedHostComponentId}.pkg" />
<line choice="{HostFxrComponentId}.pkg" />
<line choice="{SharedFxComponentId}.pkg.alternate" />
<line choice="{SharedHostComponentId}.pkg.alternate" />
<line choice="{HostFxrComponentId}.pkg.alternate" />
</choices-outline>
<choice id="{SharedFxComponentId}.pkg" visible="true" title="{SharedFxBrandName} (x64)" description="The .NET Shared Framework" selected="IsX64Machine()">
<pkg-ref id="{SharedFxComponentId}.pkg" />
</choice>
<choice id="{HostFxrComponentId}.pkg" visible="true" title="{HostFxrBrandName} (x64)" description="The .NET HostFxr" selected="IsX64Machine()">
<pkg-ref id="{HostFxrComponentId}.pkg" />
</choice>
<choice id="{SharedHostComponentId}.pkg" visible="true" title="{SharedHostBrandName} (x64)" description="The .NET Shared Host." selected="IsX64Machine()">
<pkg-ref id="{SharedHostComponentId}.pkg" />
</choice>
<choice id="{SharedFxComponentId}.pkg.alternate" visible="true" title="{SharedFxBrandName} (x64)" description="The .NET Shared Framework" selected="!IsX64Machine()" customLocation="/usr/local/share/dotnet/x64">
<pkg-ref id="{SharedFxComponentId}.pkg" />
</choice>
<choice id="{HostFxrComponentId}.pkg.alternate" visible="true" title="{HostFxrBrandName} (x64)" description="The .NET HostFxr" selected="!IsX64Machine()" customLocation="/usr/local/share/dotnet/x64">
<pkg-ref id="{HostFxrComponentId}.pkg" />
</choice>
<choice id="{SharedHostComponentId}.pkg.alternate" visible="true" title="{SharedHostBrandName} (x64)" description="The .NET Shared Host." selected="!IsX64Machine()" customLocation="/usr/local/share/dotnet/x64">
<pkg-ref id="{SharedHostComponentId}.pkg" />
</choice>
<pkg-ref id="{SharedFxComponentId}.pkg">{SharedFxComponentId}.pkg</pkg-ref>
<pkg-ref id="{HostFxrComponentId}.pkg">{HostFxrComponentId}.pkg</pkg-ref>
<pkg-ref id="{SharedHostComponentId}.pkg">{SharedHostComponentId}.pkg</pkg-ref>
<script><![CDATA[function IsX64Machine() {
var machine = system.sysctl("hw.machine");
var cputype = system.sysctl("hw.cputype");
var cpu64 = system.sysctl("hw.cpu64bit_capable");
system.log("Machine type: " + machine);
system.log("Cpu type: " + cputype);
system.log("64-bit: " + cpu64);
// From machine.h
// CPU_TYPE_X86_64 = CPU_TYPE_X86 | CPU_ARCH_ABI64 = 0x010000007 = 16777223
// CPU_TYPE_X86 = 7
var result = machine == "amd64" || machine == "x86_64" || cputype == "16777223" || (cputype == "7" && cpu64 == "1");
system.log("IsX64Machine: " + result);
return result;
}]]></script>
</installer-gui-script>
|