Deployment

Choosing a build

  • Mac App Store: deploy through Apple Business Manager and your management tool. App Store volume purchases can’t include in-app purchases, so this build runs on the free plan or on each person’s own subscription.
  • Direct build (signed and notarised .pkg, on the download page of every release next to the disk image): for Business licences. The licence key reaches Macs as a managed setting. Sample configuration profiles and the uninstall script ship in the deploy/ folder of the source repository.

Installing the package

The .pkg installs the app into /Applications. The command line link is a separate step, so you decide whether people get it:

ln -sf "/Applications/dux.app/Contents/Helpers/dux" /usr/local/bin/dux

Run it as a post-install script, or leave it to people through Settings > General (which DisableCommandLineInstall hides).

Intune

  1. Add a macOS line of business app and upload the .pkg.
  2. Add a Settings catalogue or custom configuration profile with the managed settings (next chapter).
  3. Add the Full Disk Access and login item profiles below.
  4. Assign all of them to the same group.

Jamf Pro

  1. Upload the .pkg in Settings > Packages and add it to a policy.
  2. Create a configuration profile with an Application & Custom Settings payload for the domain eu.provaz.dux.
  3. Add Privacy Preferences Policy Control and Managed Login Items payloads.
  4. Optional: add extension attributes that run dux report --extension-attribute <field> (see Fleet reporting).

Kandji, Mosyle, Addigy

Upload the package as a custom app, and add the same three profiles as custom profiles.

Full Disk Access

Without Full Disk Access a scan skips protected folders and reports them as unknown. To grant it silently, deploy a Privacy Preferences Policy Control payload with the SystemPolicyAllFiles service for the app, identified by its bundle identifier and code requirement (sample: deploy/profiles/pppc.mobileconfig, replace the placeholder UUIDs). Read the code requirement from the installed app:

codesign -dr - "/Applications/dux.app"

People can’t turn on Full Disk Access for themselves without administrator rights on a managed Mac; the app keeps working without it and says what it couldn’t read.

Login item

Scheduled scans use a login item registered by the app. Pre-approve it with a Managed Login Items (com.apple.servicemanagement) payload, so people never see a “background item added” notice. Use a rule on the team identifier or on the bundle identifier eu.provaz.dux (sample: deploy/profiles/login-items.mobileconfig). Launched by the login item, the app starts hidden and runs its scheduled scans without a window.

Uninstalling

deploy/uninstall.sh does the first two steps below and, with --purge, the fourth; --dry-run prints what it would do. By hand:

  1. Remove the command line link, if you installed it.
  2. Remove the app from /Applications.
  3. Remove the configuration profiles.
  4. Optional: remove each person’s data in ~/Library/Application Support/ (the folder named after the bundle identifier) and the preferences domain.