OS X Mavericks does not install flat packages

I have Mavericks 10.9.4. I created a flat package using pkgbuild and productbuild and tried to install it. Everything is going well, the UI says the package has been installed successfully, the logs show no errors. Also, the package is not installed. I have searched for files and they are not found anywhere on the system, hence the problem with the location. Disabling Gatakeeper doesn't help. Using the installer on the command line does not install the package and does not cause any problems.

In addition, pkgbuild --analyze creates an empty property list.

I downloaded the MacPorts package (.pkg) from the internet and tried to install it, same thing.

I have no problem installing the bundle-stype packages.

+3


source to share


1 answer


I ran into the same issue today while testing installing several flat packages that I pkgbuilded: The contents of / Library / System and / usr were installed correctly, but nothing was in / Applications !!!

Through one work package, I figured out that I need to specify an "empty" .plist component for the installer to work properly ...


Here is the component. plist generated with pkgbuild --analyze

Work package:



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array/>
</plist>

      

Broken package:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
        <dict>
                <key>BundleHasStrictIdentifier</key>
                <true/>
                <key>BundleIsRelocatable</key>
                <true/>
                <key>BundleIsVersionChecked</key>
                <true/>
                <key>BundleOverwriteAction</key>
                <string>upgrade</string>
                <key>RootRelativeBundlePath</key>
                <string>Applications/MyApp.app</string>
        </dict>
</array>
</plist>

      


Setting working component .plist with -component-plist when pkgbuilding components did the trick: now all .pkg are working correctly

+1


source







All Articles