Creating an Installer Package
Power Manager schedules and settings can be distributed as an Installer package.
Power Manager’s command line tool pmctl
includes the ability to create Installer packages for distributing schedules, settings, and licences.
Creating a File Configuration Package
The simplest way to create a file configuration package is to use the defaults. The steps below walk through this approach:
Install and configure Power Manager as desired on the local computer. These will be the settings that are embedded in the final package.
Open Terminal.app and change to the
Tools
directory:
cd '/Applications/Power Manager.app/Contents/Tools'
- Run the
pmctl
command to create the package:
./pmctl -to-file-configuration-package ~/Desktop/settings.pkg -verbose
The components of the command above are:
./pmctl
: Power Manager’s command line tool;-to-file-configuration-package ~/Desktop/settings.pkg
: a flag to save the package to~/Desktop/settings.pkg
;-verbose
: an optional flag to increase verbosity
The command will need to connect to the local Power Manager and may require credentials. Once connected, the following values will be read and used to create the package:
- log level;
- events;
- notify period;
- warning period;
- licences;
- scheduler state.
The resulting installer may be used on macOS 10.14 and later.