Commit Graph
6 Commits
Author SHA1 Message Date
Mike McQuaid af3538d54d Add as-console-user command
- Support MDM/Munki/Jamf runs where the parent process is root but
  Homebrew must execute as the logged-in macOS console user.
- Keep the nested operation constrained to `HOMEBREW_BREW_FILE` so this
  helper cannot become a general-purpose root command launcher.
- Share `macos_user.sh` with installer scripts so no-user and package
  plist fallback behaviour cannot drift between install paths.
- Stage `macos_user.sh` for `pkgbuild` because `preinstall` needs the
  resolver before the Homebrew payload has been installed.
2026-05-20 19:35:06 +01:00
nstraussandMike McQuaid e0ac5459b3 Improve Mac package for enterprise install scenarios
- Allow specifying user through `/var/tmp/.homebrew_pkg_user.plist`
- Improve permission handling
- Correctly write API cache
- Add `preinstall` script to fail if we can't get a valid user

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-10-06 11:53:00 +01:00
Mike McQuaid c5afd5d056 macOS .pkg improvements
- don't include GitHub Actions credentials
- generate and include RTF version of Homebrew BSD license
- create nicer installer with `productbuild`
- customise welcome/conclusion messages
- add Homebrew logo as a background image
- remove unnecessary `preinstall` script
- cleanup `postinstall` script to pass `brew doctor`
- use `Distribution.xml` for a nicer installer
- require CLT or Xcode rather than using our hacks to try and install
  CLT during installation
2023-07-25 15:47:34 +01:00
Sean MolenaarandSean Molenaar f30779c6bf Update package/scripts/postinstall 2022-12-23 19:36:13 +01:00
Sean MolenaarandGitHub d2aed31387 preinstall: correctly handle headless installs 2022-12-21 13:37:24 +01:00
Sean Molenaar 72b3348fb1 feature: generate macOS pkg files 2022-12-19 21:26:24 +01:00