salt/pkg/macos
2024-10-30 14:32:25 -07:00
..
pkg-resources Initial commit of relenv debian package 2022-12-22 07:59:07 -07:00
pkg-scripts Add some debugging for macOS failures 2024-10-30 14:32:25 -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 Get versions from cicd 2023-08-30 19:35:30 +00:00
build_python.sh Be more specific 2023-11-28 04:04:05 +00: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 Update notarize.sh to use new notary tool 2023-09-12 21:38:56 -07:00
package.sh Copy directory right 2023-08-30 19:35:30 +00:00
prep_salt.sh Create the extras directory with tools 2023-04-13 18:47:11 -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