<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<installer-gui-script minSpecVersion="2">
    <background file="dotnetbackground.png" mime-type="image/png"/>
    <options customize="never" require-scripts="false" hostArchitectures="x86_64"/>
    <welcome file="welcome.html" mime-type="text/html"/>
    <conclusion file="conclusion.html" mime-type="text/html"/>
    <volume-check>
        <allowed-os-versions>
            <!-- keep in sync with SetOSTargetMinVersions in the root Directory.Build.props -->
            <os-version min="12.0"/>
        </allowed-os-versions>
    </volume-check>
    <title>Microsoft .NET Runtime - 10.0.8 (x64)</title>
    <choices-outline>
        <line choice="dotnet-runtime-internal-10.0.8-osx-x64.pkg"/>
        <line choice="dotnet-hostfxr-internal-10.0.8-osx-x64.pkg"/>
        <line choice="dotnet-host-internal-10.0.8-osx-x64.pkg"/>
        <line choice="dotnet-runtime-internal-10.0.8-osx-x64.pkg.alternate"/>
        <line choice="dotnet-hostfxr-internal-10.0.8-osx-x64.pkg.alternate"/>
        <line choice="dotnet-host-internal-10.0.8-osx-x64.pkg.alternate"/>
    </choices-outline>
    <choice id="dotnet-runtime-internal-10.0.8-osx-x64.pkg" visible="true" title="Microsoft .NET Runtime - 10.0.8 (x64)" description="The .NET Shared Framework" selected="IsX64Machine()">
        <pkg-ref id="dotnet-runtime-internal-10.0.8-osx-x64.pkg"/>
    </choice>
    <choice id="dotnet-hostfxr-internal-10.0.8-osx-x64.pkg" visible="true" title="Microsoft .NET Host FX Resolver - 10.0.8 (x64)" description="The .NET HostFxr" selected="IsX64Machine()">
        <pkg-ref id="dotnet-hostfxr-internal-10.0.8-osx-x64.pkg"/>
    </choice>
    <choice id="dotnet-host-internal-10.0.8-osx-x64.pkg" visible="true" title="Microsoft .NET Host - 10.0.8 (x64)" description="The .NET Shared Host." selected="IsX64Machine()">
        <pkg-ref id="dotnet-host-internal-10.0.8-osx-x64.pkg"/>
    </choice>
    <choice id="dotnet-runtime-internal-10.0.8-osx-x64.pkg.alternate" visible="true" title="Microsoft .NET Runtime - 10.0.8 (x64)" description="The .NET Shared Framework" selected="!IsX64Machine()" customLocation="/usr/local/share/dotnet/x64">
        <pkg-ref id="dotnet-runtime-internal-10.0.8-osx-x64.pkg"/>
    </choice>
    <choice id="dotnet-hostfxr-internal-10.0.8-osx-x64.pkg.alternate" visible="true" title="Microsoft .NET Host FX Resolver - 10.0.8 (x64)" description="The .NET HostFxr" selected="!IsX64Machine()" customLocation="/usr/local/share/dotnet/x64">
        <pkg-ref id="dotnet-hostfxr-internal-10.0.8-osx-x64.pkg"/>
    </choice>
    <choice id="dotnet-host-internal-10.0.8-osx-x64.pkg.alternate" visible="true" title="Microsoft .NET Host - 10.0.8 (x64)" description="The .NET Shared Host." selected="!IsX64Machine()" customLocation="/usr/local/share/dotnet/x64">
        <pkg-ref id="dotnet-host-internal-10.0.8-osx-x64.pkg"/>
    </choice>
    <pkg-ref id="dotnet-runtime-internal-10.0.8-osx-x64.pkg" packageIdentifier="com.microsoft.dotnet.sharedframework.Microsoft.NETCore.App.10.0.8.component.osx.x64" version="10.0.8" installKBytes="77482" updateKBytes="0">#dotnet-runtime-internal-10.0.8-osx-x64.pkg</pkg-ref>
    <pkg-ref id="dotnet-hostfxr-internal-10.0.8-osx-x64.pkg" packageIdentifier="com.microsoft.dotnet.hostfxr.10.0.8.component.osx.x64" version="10.0.8" installKBytes="410" updateKBytes="0">#dotnet-hostfxr-internal-10.0.8-osx-x64.pkg</pkg-ref>
    <pkg-ref id="dotnet-host-internal-10.0.8-osx-x64.pkg" packageIdentifier="com.microsoft.dotnet.sharedhost.component.osx.x64" version="10.0.8" installKBytes="193" updateKBytes="0">#dotnet-host-internal-10.0.8-osx-x64.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");
    var translated = system.sysctl("sysctl.proc_translated");
    system.log("Machine type: " + machine);
    system.log("Cpu type: " + cputype);
    system.log("64-bit: " + cpu64);
    system.log("Translated: " + translated);
    
    // 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");
    // We may be running under translation (Rosetta) that makes it seem like system is x64, if so assume machine is not actually x64
    result = result && (translated != "1");
    system.log("IsX64Machine: " + result);
    return result;
}]]></script>
    <pkg-ref id="dotnet-runtime-internal-10.0.8-osx-x64.pkg">
        <bundle-version/>
    </pkg-ref>
    <pkg-ref id="dotnet-hostfxr-internal-10.0.8-osx-x64.pkg">
        <bundle-version/>
    </pkg-ref>
    <pkg-ref id="dotnet-host-internal-10.0.8-osx-x64.pkg">
        <bundle-version/>
    </pkg-ref>
    <product id="com.microsoft.dotnet.Microsoft.NETCore.App.10.0.8.osx.x64" version="10.0.8"/>
</installer-gui-script>