<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<installer-gui-script authoringTool="Packages" authoringToolVersion="1.2.10" authoringToolBuild="732" minSpecVersion="1">
    <options hostArchitectures="arm64,x86_64"/>
    <title>NOBLEPARAGON driver install</title>
    <script>
    var IsARM=system.sysctl("hw.optional.arm64") == "1";
    var IsIntel=!IsARM;
    if(IsARM)
    {
        IsIntel=false;
        system.log("ARM packege install selected!111111");
    }
    else
    {
        IsIntel=true;
        system.log("intel packege install selected!22222");
    }
    
    </script>
    <!-- Choices intel-->
    <choice id="Intel" title="NOBLEPARAGON Intel Installer" description="You will install the printer driver. Please continue." start_selected="true" start_visible="true" selected="IsIntel">
        <pkg-ref id="com.zjweiting.Shininger.intel"/>
        <hostArchitectures>
            <arch>x86_64</arch>
        </hostArchitectures>
    </choice>
    <!-- Choices ARM-->
    <choice id="ARM" title="NOBLEPARAGON ARM Installer" description="You will install the printer driver. Please continue." start_selected="true" start_visible="true" selected="IsARM">
        <pkg-ref id="com.zjweiting.Shininger.ARM"/>
        <hostArchitectures>
            <arch>arm64</arch>
        </hostArchitectures>
    </choice>
    <!-- Packages -->
    <pkg-ref id="com.zjweiting.Shininger.ARM" version="1.0" installKBytes="585" updateKBytes="0">#NOBLEPARAGON_Publish2020ARM.pkg</pkg-ref>
    <pkg-ref id="com.zjweiting.Shininger.intel" version="1.0" packageIdentifier="com.zjweiting.Shininger" installKBytes="587" updateKBytes="0">#NOBLEPARAGON_Publish2018.pkg</pkg-ref>
    <!-- Outline -->
    <choices-outline>
        <line choice="ARM"/>
        <line choice="Intel"/>
    </choices-outline>
    <pkg-ref id="com.zjweiting.Shininger.ARM">
        <bundle-version/>
    </pkg-ref>
    <pkg-ref id="com.zjweiting.Shininger.intel">
        <bundle-version/>
    </pkg-ref>
</installer-gui-script>