<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!--
    Installer template rendered by build_pkg.sh for either app name.

    IT IS THE ONLY PLACE THE USER IS ASKED ANYTHING, which is why it is a file and not a flag:
    the welcome pane, the licence they must accept before Continue is enabled, and the macOS
    check that refuses the install rather than leaving a binary that cannot launch. The payload
    itself (`pkgbuild`) knows nothing about any of it.

    `customize="never"`: there is one thing to install. A customise pane with a single checkbox
    is a choice that cannot be made, in front of a user who came here to press Install.

    `enable_anywhere="false"` with `enable_localSystem="true"`: the app goes to /Applications,
    for every user of the Mac. A per-user install would put it somewhere the AAX panel and the
    Pro Tools automation would then have to go looking for.
-->
<installer-script minSpecVersion="1">
    <title>fMusic</title>
    <welcome file="welcome.html" mime-type="text/html"/>
    <license file="license.txt"/>
    <options customize="never" allow-external-scripts="no"/>
    <domains enable_localSystem="true" enable_anywhere="false" enable_currentUserHome="false"/>
    <!--
        THE FLOOR IS THE APP'S OWN (MACOSX_DEPLOYMENT_TARGET = 13.5). Installing on anything older
        succeeds and then fails at launch with dyld's wall of missing symbols, which reads as a
        broken app rather than as an old Mac — so the installer says it first, in one sentence.
    -->
    <installation-check script="fmusic_install_check();"/>
    <script>
        function fmusic_install_check() {
            if (!(system.compareVersions(system.version.ProductVersion, '13.5.0') &gt;= 0)) {
                my.result.title   = 'Unsupported macOS';
                my.result.message = 'fMusic needs macOS 13.5 or later. This Mac is running ' + system.version.ProductVersion + '.';
                my.result.type    = 'Fatal';
                return false;
            }
            return true;
        }
    </script>
    <choices-outline>
        <line choice="default"/>
    </choices-outline>
    <choice id="default" title="fMusic">
        <pkg-ref id="com.forte-ai.fmusic.installer"/>
    </choice>
    <!--
        Resolved against the directory `productbuild` is given as its package path, which
        build_pkg.sh points at the one it just wrote the component package into. The package
        version includes both the marketing version and build number, so repeated builds of the
        same release remain distinguishable.
    -->
    <pkg-ref id="com.forte-ai.fmusic.installer" version="4.0.7.31" onConclusion="none" installKBytes="143479" updateKBytes="0">#fMusic-component.pkg</pkg-ref>
    <pkg-ref id="com.forte-ai.fmusic.installer">
        <bundle-version>
            <bundle CFBundleShortVersionString="2.9.6" CFBundleVersion="2061" id="org.sparkle-project.DownloaderService" path="Applications/fMusic.app/Contents/Frameworks/Sparkle.framework/Versions/B/XPCServices/Downloader.xpc"/>
            <bundle CFBundleShortVersionString="4.0.7" CFBundleVersion="31" id="googlesignin-ios.GoogleSignInSwift.resources" path="Applications/fMusic.app/Contents/Resources/GoogleSignIn_GoogleSignInSwift.bundle"/>
            <bundle CFBundleShortVersionString="4.0.7" CFBundleVersion="31" id="forterenamekit.ForteRenameKit.resources" path="Applications/fMusic.app/Contents/Resources/ForteRenameKit_ForteRenameKit.bundle"/>
            <bundle CFBundleShortVersionString="4.0.7" CFBundleVersion="31" id="swift-crypto.Crypto.resources" path="Applications/fMusic.app/Contents/Resources/swift-crypto_Crypto.bundle"/>
            <bundle CFBundleShortVersionString="4.0.7" CFBundleVersion="31" id="googleutilities.GoogleUtilities-Logger.resources" path="Applications/fMusic.app/Contents/Resources/GoogleUtilities_GoogleUtilities-Logger.bundle"/>
            <bundle CFBundleShortVersionString="4.0.7" CFBundleVersion="31" id="swift-nio-ssl.NIOSSL.resources" path="Applications/fMusic.app/Contents/Resources/swift-nio-ssl_NIOSSL.bundle"/>
            <bundle CFBundleShortVersionString="4.0.7" CFBundleVersion="31" id="gtmappauth.GTMAppAuth.resources" path="Applications/fMusic.app/Contents/Resources/GTMAppAuth_GTMAppAuth.bundle"/>
            <bundle CFBundleShortVersionString="4.0.7" CFBundleVersion="31" id="promises.FBLPromises.resources" path="Applications/fMusic.app/Contents/Resources/Promises_FBLPromises.bundle"/>
            <bundle CFBundleShortVersionString="4.0.7" CFBundleVersion="31" id="swift-protobuf.SwiftProtobufPluginLibrary.resources" path="Applications/fMusic.app/Contents/Resources/SwiftProtobuf_SwiftProtobufPluginLibrary.bundle"/>
            <bundle CFBundleShortVersionString="4.0.7" CFBundleVersion="31" id="appauth-ios.AppAuth.resources" path="Applications/fMusic.app/Contents/Resources/AppAuth_AppAuth.bundle"/>
            <bundle CFBundleShortVersionString="2.9.6" CFBundleVersion="2061" id="org.sparkle-project.Sparkle.Updater" path="Applications/fMusic.app/Contents/Frameworks/Sparkle.framework/Versions/B/Updater.app"/>
            <bundle CFBundleShortVersionString="4.0.7" CFBundleVersion="31" id="swift-protobuf.SwiftProtobuf.resources" path="Applications/fMusic.app/Contents/Frameworks/SwiftProtobuf_7CEE9AB92C12BC6B_PackageProduct.framework/Versions/A/Resources/SwiftProtobuf_SwiftProtobuf.bundle"/>
            <bundle CFBundleShortVersionString="4.0.7" CFBundleVersion="31" id="gtm-session-fetcher.GTMSessionFetcherCore.resources" path="Applications/fMusic.app/Contents/Resources/GTMSessionFetcher_GTMSessionFetcherCore.bundle"/>
            <bundle CFBundleShortVersionString="4.0.7" CFBundleVersion="31" id="googleutilities.GoogleUtilities-Environment.resources" path="Applications/fMusic.app/Contents/Resources/GoogleUtilities_GoogleUtilities-Environment.bundle"/>
            <bundle CFBundleShortVersionString="4.0.7" CFBundleVersion="31" id="com.forte-ai.fmusic2" path="Applications/fMusic.app"/>
            <bundle CFBundleShortVersionString="2.9.6" CFBundleVersion="2061" id="org.sparkle-project.Sparkle" path="Applications/fMusic.app/Contents/Frameworks/Sparkle.framework"/>
            <bundle CFBundleShortVersionString="4.0.7" CFBundleVersion="31" id="swift-protobuf.SwiftProtobuf" path="Applications/fMusic.app/Contents/Frameworks/SwiftProtobuf_7CEE9AB92C12BC6B_PackageProduct.framework"/>
            <bundle CFBundleShortVersionString="4.0.7" CFBundleVersion="31" id="posthog-ios.PHPLCrashReporter.resources" path="Applications/fMusic.app/Contents/Resources/PostHog_PHPLCrashReporter.bundle"/>
            <bundle CFBundleShortVersionString="4.0.7" CFBundleVersion="31" id="appauth-ios.AppAuthCore.resources" path="Applications/fMusic.app/Contents/Resources/AppAuth_AppAuthCore.bundle"/>
            <bundle CFBundleShortVersionString="2.9.6" CFBundleVersion="2061" id="org.sparkle-project.InstallerLauncher" path="Applications/fMusic.app/Contents/Frameworks/Sparkle.framework/Versions/B/XPCServices/Installer.xpc"/>
            <bundle CFBundleShortVersionString="4.0.7" CFBundleVersion="31" id="posthog-ios.PostHog.resources" path="Applications/fMusic.app/Contents/Resources/PostHog_PostHog.bundle"/>
            <bundle CFBundleShortVersionString="4.0.7" CFBundleVersion="31" id="swift-nio.NIOPosix.resources" path="Applications/fMusic.app/Contents/Resources/swift-nio_NIOPosix.bundle"/>
            <bundle CFBundleShortVersionString="4.0.7" CFBundleVersion="31" id="googlesignin-ios.GoogleSignIn.resources" path="Applications/fMusic.app/Contents/Resources/GoogleSignIn_GoogleSignIn.bundle"/>
            <bundle CFBundleShortVersionString="4.0.7" CFBundleVersion="31" id="googleutilities.GoogleUtilities-UserDefaults.resources" path="Applications/fMusic.app/Contents/Resources/GoogleUtilities_GoogleUtilities-UserDefaults.bundle"/>
        </bundle-version>
    </pkg-ref>
</installer-script>