How to Zip the Primo Customization Package on a Mac

The macOS automatically adds hidden .DS_Store (Desktop Services Store) files to each directory when you browse it using the Finder app. While these hidden files are harmless, Primo will reject the customization package due to these hidden files, and so they must be removed before you can upload the customization package.

Mac users may follow this procedure to zip and remove any hidden .DS_Store files:

  1. While logged into macOS as an administrator, open the Terminal application under Applications > Utilities.

  2. Navigate to the location where the customization package directory appears.

    1. In Terminal, type cd followed by a space.

    2. Find the folder with the issue but do not open it. Instead, drag its icon into Terminal, drop it and watch it complete the path for you.

    3. Press Return.

  3. In Terminal, type ls -l to display the contents of the directory. You should see the customization package directory listed as confirmation you are in the correct location.

  4. CLOSE all open Finder windows. It is important that you do not open the containing directory in Finder until this process is complete, otherwise new .DS_Store files will be created by Terminal.

  5. Enter the following command to zip the package directory while recursively removing the .DS_Store files from the directory and all subdirectories simultaneously:
    zip –r <Package_Directory_Name>.zip <Package_Directory_Name> -x "*.DS_Store"

  6. Follow the instructions under Creating A Customization Package in the Primo Customization documentation to upload your newly zipped package.