salt/pkg/macos
Pedro Algarvio 6c819439b5 Add a few more nice to have hooks
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-02-07 07:10:13 +00:00
..
pkg-resources Initial commit of relenv debian package 2022-12-22 07:59:07 -07:00
pkg-scripts fixing naming for salt-config. 2023-01-31 12:19:13 -07:00
scripts Initial commit of relenv debian package 2022-12-22 07:59:07 -07:00
.gitignore Add a few more nice to have hooks 2023-02-07 07:10:13 +00:00
build.sh Run the package.sh with sudo 2023-01-25 10:05:16 -07:00
build_python.sh go back to the old method of getting script dir 2023-01-25 10:05:16 -07:00
clean.sh go back to the old method of getting script dir 2023-01-25 10:05:16 -07:00
distribution.xml.dist Initial commit of relenv debian package 2022-12-22 07:59:07 -07:00
entitlements.plist Add a few more nice to have hooks 2023-02-07 07:10:13 +00:00
install_salt.sh go back to the old method of getting script dir 2023-01-25 10:05:16 -07:00
notarize.sh Initial commit of relenv debian package 2022-12-22 07:59:07 -07:00
package.sh Put package in the script dir 2023-01-25 10:05:16 -07:00
prep_salt.sh Create /opts/salt directory if not present 2023-01-25 10:05:16 -07:00
README.md Initial commit of relenv debian package 2022-12-22 07:59:07 -07:00
sign_binaries.sh go back to the old method of getting script dir 2023-01-25 10:05:16 -07:00

Building Native Packages on macOS

Salt runs well on the macOS, but does have some limitations.

In this directory you will find scripts and collateral to build a macOS .pkg-style package that uses a custom-built Python. This process has been tested on macOS Catalina (10.15) and later.

This approach enables Salt users to potentially add items to their Salt install via 'pip install' without interfering with the rest of their system's Python packages.

In addition, because of changes in launchd from version to version of the OS, a simpler approach is taken for the launchd plist files.

To build a native package you will need the following installed:

  • Xcode, or the Xcode Command Line Tools
  • git

The native package will install program files into /opt/salt. Configuration files will be installed to etc/salt, but will have '.dist' appended to them.

Launchd plists will be placed in /Library/LaunchDaemons. By default, salt-minion will NOT be enabled or started.

The process has been automated via the build.sh script in the directory with this README file. Checkout the Salt repo from GitHub, chdir into the base repo directory, and run the following:

./build.sh

References:

http://crushbeercrushcode.org/2014/01/using-pkgbuild-and-productbuild-on-os-x-10-7/ http://stackoverflow.com/questions/11487596/making-os-x-installer-packages-like-a-pro-xcode-developer-id-ready-pkg