
Read the book for a more detailed explanation of pkgbuild and the build script. I recommend using a script to run the pkgbuild command to avoid errors. If you get one of them slightly wrong it can lead to unexpected behavior or even break the installation. Note: the pkgbuild command has many options and arguments.
PHOTO LOCK FOR MAC INSTALL
The resulting pkg file will install the image file in /Library/Desktop Picture. Then you can build a pkg with $ pkgbuild -root payload -install-location "/Library/Desktop Pictures/" -identifier -version 1 BoringDesktop.pkg $ cp /path/to/BoringBlueDesktop.png payload Then copy the image to the payload folder. The new dynamic desktop pictures of macOS Mojave have the heic file extension.įirst create a project folder, with a payload folder inside: $ mkdir -p BoringDesktop/payload Note: Desktop pictures on macOS can be many file formats. You can use your own desktop picture or download BoringBlueDesktop.png from the book’s resources. I will use the same example desktop picture as in the book. Note: installing a single image file to /Library/Desktop Pictures is actually the first exercise/example in my book “Packaging for Apple Administrators.” Get that for a more detailed description. The best way of doing that is with an installer package. Unless you want to use one of the default macOS Desktop Picture images, you will first need to get the image file on to the client. One of the commonly used methods may break in macOS Mojave because of the new security and privacy controls for AppleEvents, also known as TCC.

Many organisations like to set or pre-set the Desktop Picture of managed Macs.
