New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add macOS pkg installer #7554
Comments
In the PR I also implemented an "build & sign" option for production build of the pkg installer which would also sign the installer. |
Hi @paulober, thanks for opening this enhancement request and doing the work on the associated PR. As per our Contributing Policy we don't accept PRs for work we haven't discussed. I'm going to mark this with a In the meantime, just so I understand, your current approach for installing on MacOS is to download the release artifact from GitHub, to unzip and use that for installation, correct? And this approach will use the MacOS installation process to automate that, and also set up autocompletions for Cheers! |
Hi @williammartin, I'm glad that the approach of creating a macOS installer package will be discussed. Currently, I manually install the macOS arm64 artifact by downloading and copying the contents to the desired location. By creating a macOS installer package (.pkg file), we can bundle the binary, man pages, and zsh autocompletion script in a structured and standardized manner. This package serves as a Mac equivalent of a deb package on Linux, simplifying the installation process. An advantage of this approach is its compatibility with both Intel and Apple Silicon Macs. The package contains a macOS universal binary, allowing seamless installation on both architectures without requiring user intervention. I decided to use the Universal Binary feature as this also simplifies the installation package structure and reduces the resulting artifacts count. If you have any further questions, please let me know. |
Here is the installer for the current v2.30.0 release as a showcase: |
I'm curious why Overall I'm worried about maintaining a pkg installer moving forward. |
Also, the pkg installer would be also build by the CI and it really only copies a file structure you put into it on the target machine. So for example payload/usr/local/bin/gh would make the installer moving gh into /usr/local/bin. Just change the path and it moves it somewhere else. (sry for my English, I'm not a native speaker) |
@williammartin Any updates on this? |
@paulober sorry for the delay and thank you for the additional information. We discussed it and we think it's a reasonable enhancement but from our side we need to do a little more investigation into the maintenance burden to support this before committing. Note that I'm not saying it requires too much maintenance, just that no one on the team has experience with MacOS pkg installers and we don't want to commit to something we don't have a good understanding of. I'll update you on this issue once we've had time to do the necessary investigation. Thanks! |
Homebrew has messed up my system in the past and I must avoid using it for reasons. It would be nice if the downloaded zip at least gave some directions as to where I'm supposed to place the downloaded folder: gh_2.31.0_macOS_amd64 Apologies if it's a dumb question. Thank you. |
@annie-maria Exactly why we need a pkg installer. I build for my self a pkg for the current release (it's also signed): |
Describe the feature or problem you’d like to solve
Also build a pkg installer for macOS like for example Python and Go have so developers on macOS don't have to install the zip manually.
Proposed solution
A more simple and faster installation process for macOS developers with the addition of zsh autocompletion support which was linux exclusive before.
Additional context
I'll assign my self to develop this so you don't have to as I rely want to see this feature.
The text was updated successfully, but these errors were encountered: