fleet/tools/mdm/apple/appmanifest
2024-10-18 12:38:26 -05:00
..
main.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
README.md Add a tool to generate manifests for Apple MDM (#10959) 2023-04-05 10:35:38 -03:00

appmanifest

appmanifest is a tool that outputs to stdout a valid XML manifest that can be used by the MDM InstallEnterpriseApplication command to install a package.

$ go run tools/mdm/apple/appmanifest/main.go --help
Usage of appmanifest:
  -pkg-file string
    	Path to a .pkg file
  -pkg-url string
    	URL where the package will be served

Example workflow

  1. Create a fleetd installer
fleetctl package --type=pkg --fleet-desktop
  1. Sign the installer so it can be installed via MDM
productsign --sign "Developer ID Installer: $DEVID_INFO" fleet-osquery.pkg fleetd-base.pkg
  1. Run appmanifest
$ go run tools/mdm/apple/appmanifest/main.go \
    -pkg-file fleetd-base.pkg \
    -pkg-url $YOUR_URL > fleetd-base-manifest.plist
  1. Upload fleetd-base.pkg to $YOUR_URL and fleetd-base-manifest.plist to a publicly accessible location.