Skip to content

[skip changelog] Update notarization job, now usable with p12 cert format #1062

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

Merged
merged 6 commits into from
Nov 13, 2020

Conversation

umbynos
Copy link
Contributor

@umbynos umbynos commented Nov 9, 2020

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce?

update the CI

  • What is the current behavior?
  • What is the new behavior?

The CI now uses a .p12 certificates and uses an action to handle keychain unlocking. Other improvements have been added.
Now gon is installed through homebrew.
The Notarize binary, re-package it and update checksum step has been split in two different steps: one simple step to notarize and sign and the other one to change permission, calculate the checksum and repackage the binary

  • Does this PR introduce a breaking change?

no

  • Other information:

See how to contribute
It's necessary to add INSTALLER_CERT_MAC_P12 and INSTALLER_CERT_MAC_PASSWORD as secrets

Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Umberto!

I tried it out in my fork with my own Apple Developer ID certificate and it works just fine.

This will also need to be done to the "nightly" workflow:
https://github.com/arduino/arduino-cli/blob/master/.github/workflows/nightly.yaml

umbynos and others added 2 commits November 11, 2020 10:08
Copy link
Contributor

@rsora rsora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check my comments in the code!
(Excellent work BTW!)

Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

per@Pers-iMac Downloads % spctl -a -vvv -t install "dist/arduino-cli_43.0.0_macOS_64bit/arduino-cli" 
dist/arduino-cli_43.0.0_macOS_64bit/arduino-cli: accepted
source=Notarized Developer ID
origin=Developer ID Application: Per Tillisch (9M5NQMNWBJ)
per@Pers-iMac Downloads % spctl -a -vvv -t install "dist (1)/arduino-cli_0.13.0_macOS_64bit/arduino-cli"
dist (1)/arduino-cli_0.13.0_macOS_64bit/arduino-cli: accepted
source=Notarized Developer ID
origin=Developer ID Application: ARDUINO SA (7KT7ZWMCJT)

Copy link
Contributor

@rsora rsora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
New secrets configured, let's merge!

@rsora rsora merged commit 922cf9f into arduino:master Nov 13, 2020
@umbynos umbynos deleted the umbynos/cert_update_p12 branch November 13, 2020 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants