Skip to content
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

Notarizing the macOS binary to avoid the warning message #950

Open
ggrossetie opened this issue Apr 28, 2020 · 2 comments
Open

Notarizing the macOS binary to avoid the warning message #950

ggrossetie opened this issue Apr 28, 2020 · 2 comments

Comments

@ggrossetie
Copy link
Member

Since the binary isn’t registered with Apple, users will get a warning dialog.
It's possible to workaround this warning dialog but it would be better to notarize the binary: https://support.apple.com/guide/mac-help/open-a-mac-app-from-an-unidentified-developer-mh40616/mac

Fortunately, @brunchboy already did that on one project and can give us some tips yay! 😉

@brunchboy
Copy link
Contributor

I had intended to write a Medium post about how I got this working, but then the pandemic intervened and totally wiped the details and plans from my brain. 😞

The first step is to get the binary signed and notarized locally on your development machine. Have you been able to do that? My signing experience isn’t going to be helpful because it centered on using jlink and jpackage to create a signed native application bundle containing a Java runtime environment from a Clojure project. I have no idea how one signs node binaries, but I can only imagine there is documentation about that.

Once you have that working, I can share the elements I needed to add to get notarization working, and how to do that inside of GitHub actions. The workflow that does it is here: https://github.com/Deep-Symmetry/beat-link-trigger/blob/master/.github/workflows/uberjar.yml

You’ll want to focus on the build_dmg job that begins on line 147, and the shell script it uses: https://github.com/Deep-Symmetry/beat-link-trigger/blob/master/.github/scripts/build_dmg.zsh

@brunchboy
Copy link
Contributor

Once you are ready to dig into those I can give more details about sections, and things that tripped me up, and how I configured the secrets needed for the workflow to sign things using my developer identity without leaking them to people who fork the repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants