autopkg / n8felton-recipes

Recipes for Autopkg
28 stars 35 forks source link

Apple Printer Driver PKG's fail on Monterey #158

Closed macmule closed 2 years ago

macmule commented 2 years ago

Seems that most, if not all, have the following Distribution file in the pkg:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<installer-gui-script minSpecVersion="1">
    <options hostArchitectures="x86_64"/>
    <title>SU_TITLE</title>
    <script/>
    <installation-check script="InstallationCheck()"/>
    <license file="License.rtf"/>
    <choices-outline>
        <line choice="manual"/>
    </choices-outline>
    <choice id="manual" title="SU_TITLE">
        <pkg-ref id="BrotherPrinterDrivers" auth="Root" packageIdentifier="com.apple.pkg.BrotherPrinterDrivers">#BrotherPrinterDrivers.pkg</pkg-ref>
    </choice>
    <script>
function InstallationCheck(prefix) {
    if (system.compareVersions(system.version.ProductVersion, '12.0') &gt; 0) {
        my.result.message = system.localizedStringWithFormat('ERROR_25CBFE41C7', '12.0');
        my.result.type = 'Fatal';
        return false;
    }
    return true;
}
</script>
    <pkg-ref id="BrotherPrinterDrivers" installKBytes="375202" version="10.6.0.1.1.1608004765"/>
</installer-gui-script>

This means that they fail on 12.0+, might be worth setting a maximum os_version of 11.6.1

n8felton commented 2 years ago

This should be resolved with 8a8659e