<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<installer-gui-script minSpecVersion="1">
    <title>超注音 for macOS Ver 2.2.0</title>
    <pkg-ref id="tw.superime.inputmethod.ChaozhuyinMacOS">
        <bundle-version>
            <bundle CFBundleShortVersionString="2.2.0" CFBundleVersion="11" id="tw.superime.inputmethod.ChaozhuyinMacOS" path="Library/Input Methods/ChaozhuyinMacOS.app"/>
        </bundle-version>
    </pkg-ref>
    <!--<pkg-ref id="tw.superime.inputmethod.ChaozhuyinMacOS.registerer"/>-->
    <!--<options allow-external-scripts="yes" customize="never" hostArchitectures="x86_64,arm64"/>-->
    <options customize="never" hostArchitectures="x86_64,arm64"/>
    <allowed-os-versions>
        <os-version min="11.0"/>
    </allowed-os-versions>
    <background file="install_background.png"/>
    <background-darkAqua file="install_background_dark.png"/>
    <license file="License.txt"/>
    <!--
    <conclusion mime-type="text/html"><![CDATA[<html><body><br/>
        <p style="margin:0px;font-size:120%">
        注意: 在安裝完成後，請在系統偏好設定的「鍵盤」→「輸入方式」中增加「超注音」。
        </p><br/>
        </body></html>]]>
    </conclusion>
-->
    <choices-outline>
        <line choice="default">
            <line choice="tw.superime.inputmethod.ChaozhuyinMacOS"/>
            <!--<line choice="tw.superime.inputmethod.ChaozhuyinMacOS.registerer"/>-->
        </line>
    </choices-outline>
    <choice id="default"/>
    <choice id="tw.superime.inputmethod.ChaozhuyinMacOS" visible="false">
        <pkg-ref id="tw.superime.inputmethod.ChaozhuyinMacOS"/>
    </choice>
    <pkg-ref id="tw.superime.inputmethod.ChaozhuyinMacOS" version="2.2.0" onConclusion="None" installKBytes="194883" updateKBytes="0">#ChaozhuyinComponent.pkg</pkg-ref>
    <!--
    <choice id="tw.superime.inputmethod.ChaozhuyinMacOS.registerer" visible="false">
        <pkg-ref id="tw.superime.inputmethod.ChaozhuyinMacOS.registerer"/>
    </choice>
    <pkg-ref id="tw.superime.inputmethod.ChaozhuyinMacOS.registerer" version="2.2.0"
         onConclusion="None">ChaozhuyinRegisterer.pkg</pkg-ref>

    <installation-check script="installation_check()"/>
    <script><![CDATA[

function installation_check () {
    // Unregister Chaozhuyin
    system.run('imktool', '-u');
    return true
}

    ]]></script>
-->
</installer-gui-script>