8 Commits

Author SHA1 Message Date
Mike McQuaid
b00a95b678
pkg installer: install cached API data.
Continuing with the goals of making the installer:
- more useful
- entirely offline

Let's pre-download the API data from a `brew update` run and install it
into the logged-in user's home directory.

While we're here, in the `postinstall` script:
- use longer arguments for various commands
- fix an issue with symlinking on Intel if `/usr/local/bin` doesn't
  already exist
- unset `bash -x` and use `-v` on more commands instead
2023-07-26 15:32:14 +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
TETRA2000
051d7ec4f7
Add package signing configuration for GitHub Actions
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2023-07-24 17:10:31 +01:00
Ruoyu Zhong
733eff2fa7
workflows/build-pkg: only run on Homebrew-owned repos
This prevents the workflow from being run in a fork.

Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
2023-05-10 12:59:33 +08:00
Ruoyu Zhong
2831335f4d
workflows/build-pkg: run on macos-13 2023-04-25 11:22:21 +08:00
Carlo Cabrera
130f37a243
workflows/build-pkg: fix actionlint error
Also, replace the `>` with `>>` to avoid running into potentially
confusing bugs in case we add more things to `GITHUB_OUTPUT` before this
line.
2023-04-10 23:56:44 +08:00
Sean Molenaar
f6a9980e49
fix: cleanup macOS packaging
Don't allow specifying target
Add `set -e` to shell scripts
Don't try and package on every PR

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2022-12-21 13:18:09 +01:00
Sean Molenaar
72b3348fb1
feature: generate macOS pkg files 2022-12-19 21:26:24 +01:00