salt/pkg/osx
2024-01-24 08:42:46 -07:00
..
pkg-resources Edit RST files on a mac so that line endings and fonts are correct 2022-01-19 15:07:02 -05:00
pkg-scripts Bump to Python 3.9.18 due to CVE-2023-40217 2023-09-12 18:03:29 +01:00
scripts Update mac native package for upcoming release 2016-06-01 23:32:23 -05:00
shasums Update mac build scripts to use .pyenv 2022-05-24 13:22:03 -07:00
.gitignore Update mac native package for upcoming release 2016-06-01 23:32:23 -05:00
build.sh Make sure sudo is launche with -E 2022-08-17 11:22:46 -06:00
build_env.sh Bump to Python 3.9.18 due to CVE-2023-40217 2023-09-12 18:03:29 +01:00
distribution.xml.dist Update logo with new branding. Add xcf file for future editing 2021-02-25 12:46:20 -05:00
entitlements.plist Sign Binaries and Notarize OSX Installer (#59084) 2021-02-22 13:46:19 -05:00
notarize.sh Backport notarize.sh from 3006 2024-01-24 08:42:46 -07:00
package.sh Bump to Python 3.9.18 due to CVE-2023-40217 2023-09-12 18:03:29 +01:00
README.md Update the macOS installer and docs 2022-01-19 15:07:02 -05:00
sign_binaries.sh Bump to Python 3.9.18 due to CVE-2023-40217 2023-09-12 18:03:29 +01: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 Lion (10.7) 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