<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<installer-gui-script minSpecVersion="2">
    <title>FileDonkey 0.5.0-Beta</title>
    <organization>app.filedonkey</organization>
    <options customize="never" require-scripts="false" hostArchitectures="x86_64,arm64"/>
    <domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true"/>
    <volume-check>
        <allowed-os-versions>
            <os-version min="10.15"/>
        </allowed-os-versions>
    </volume-check>
    <script><![CDATA[
function fuseTInstalled() {
    var candidates = [
        '/Library/Application Support/fuse-t/lib/libfuse3.4.dylib',
        '/usr/local/lib/libfuse3.4.dylib'
    ];
    for (var i = 0; i < candidates.length; i++) {
        if (system.files.fileExistsAtPath(candidates[i])) {
            return true;
        }
    }
    return false;
}
function supportsFSKit() {
    return system.compareVersions(system.version.ProductVersion, '26.0') >= 0;
}
function installFuseT() {
    return !fuseTInstalled();
}
function installFuseTFSKit() {
    return !fuseTInstalled() && supportsFSKit();
}
]]></script>
    <license file="LICENSE.txt"/>
    <conclusion file="conclusion.html"/>
    <choices-outline>
        <line choice="fuse-t-core"/>
        <line choice="fuse-t-fskit"/>
        <line choice="com.dizaird.FileDonkey"/>
    </choices-outline>
    <choice id="fuse-t-core" visible="false" enabled="false" selected="installFuseT()">
        <pkg-ref id="org.fuse-t.core.1.2.7"/>
    </choice>
    <choice id="fuse-t-fskit" visible="false" enabled="false" selected="installFuseTFSKit()">
        <pkg-ref id="org.fuse-t.fskit.1.2.7"/>
    </choice>
    <choice id="com.dizaird.FileDonkey" visible="false">
        <pkg-ref id="com.dizaird.FileDonkey"/>
    </choice>
    <pkg-ref id="org.fuse-t.core.1.2.7" version="1.2.7" auth="Root" onConclusion="none" installKBytes="45534">#fuse-t-core.pkg</pkg-ref>
    <pkg-ref id="org.fuse-t.fskit.1.2.7" version="1.2.7" auth="Root" onConclusion="none" installKBytes="1735">#fuse-t-fskit.pkg</pkg-ref>
    <pkg-ref id="com.dizaird.FileDonkey" version="0.5.0" onConclusion="none" installKBytes="53146">#FileDonkey-app.pkg</pkg-ref>
    <pkg-ref id="org.fuse-t.core.1.2.7">
        <bundle-version>
            <bundle CFBundleShortVersionString="1.0" CFBundleVersion="1" id="org.fuse-t.fuse-t" path="Library/Frameworks/fuse_t.framework"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="org.fuse-t.fskit.1.2.7">
        <bundle-version>
            <bundle CFBundleShortVersionString="0.1.3" CFBundleVersion="3" id="org.fuset.fskit-srv" path="Applications/fuse-t.app"/>
            <bundle CFBundleShortVersionString="0.1.3" CFBundleVersion="3" id="org.fuset.fskit-srv.module" path="Applications/fuse-t.app/Contents/Extensions/FskitSrvModule.appex"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="com.dizaird.FileDonkey">
        <bundle-version>
            <bundle CFBundleShortVersionString="6.7" CFBundleVersion="6.7.3" id="org.qt-project.QtDBus" path="FileDonkey.app/Contents/Frameworks/QtDBus.framework"/>
            <bundle CFBundleShortVersionString="6.7" CFBundleVersion="6.7.3" id="org.qt-project.QtCore" path="FileDonkey.app/Contents/Frameworks/QtCore.framework"/>
            <bundle CFBundleShortVersionString="6.7" CFBundleVersion="6.7.3" id="org.qt-project.QtSvg" path="FileDonkey.app/Contents/Frameworks/QtSvg.framework"/>
            <bundle CFBundleShortVersionString="6.7" CFBundleVersion="6.7.3" id="org.qt-project.QtWidgets" path="FileDonkey.app/Contents/Frameworks/QtWidgets.framework"/>
            <bundle CFBundleShortVersionString="0.5.0" CFBundleVersion="0.5.0" id="com.dizaird.FileDonkey" path="FileDonkey.app"/>
            <bundle CFBundleShortVersionString="6.7" CFBundleVersion="6.7.3" id="org.qt-project.QtNetwork" path="FileDonkey.app/Contents/Frameworks/QtNetwork.framework"/>
            <bundle CFBundleShortVersionString="6.7" CFBundleVersion="6.7.3" id="org.qt-project.QtGui" path="FileDonkey.app/Contents/Frameworks/QtGui.framework"/>
        </bundle-version>
    </pkg-ref>
</installer-gui-script>