Skip to content

Commit 02895b7

Browse files
committed
Enable macos notarization
1 parent 8d12c62 commit 02895b7

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

.github/workflows/release-go-task.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
INSTALLER_CERT_MAC_PATH: "/tmp/ArduinoCerts2020.p12"
7070
KEYCHAIN_PASSWORD: keychainpassword # Arbitrary password for a keychain that exists only for the duration of the job, so not secret
7171
run: |
72-
echo "${{ secrets.INSTALLER_CERT_MAC_P12 }}" | base64 --decode > "${{ env.INSTALLER_CERT_MAC_PATH }}"
72+
echo "${{ secrets.MACOS_SIGN_CERTIFICATE_P12 }}" | base64 --decode > "${{ env.INSTALLER_CERT_MAC_PATH }}"
7373
security create-keychain -p "${{ env.KEYCHAIN_PASSWORD }}" "${{ env.KEYCHAIN }}"
7474
security default-keychain -s "${{ env.KEYCHAIN }}"
7575
security unlock-keychain -p "${{ env.KEYCHAIN_PASSWORD }}" "${{ env.KEYCHAIN }}"
@@ -79,7 +79,7 @@ jobs:
7979
-f pkcs12 \
8080
-A \
8181
-T "/usr/bin/codesign" \
82-
-P "${{ secrets.INSTALLER_CERT_MAC_PASSWORD }}"
82+
-P "${{ secrets.MACOS_SIGN_CERTIFICATE_PASSWORD }}"
8383
security set-key-partition-list \
8484
-S apple-tool:,apple: \
8585
-s \

.gon.hcl

-15
This file was deleted.

gon.config.hcl

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/general/gon.config.hcl
2+
# See: https://github.com/mitchellh/gon#configuration-file
3+
source = ["dist/arduino-cloud-cli_osx_darwin_amd64/arduino-cloud-cli"]
4+
bundle_id = "cc.arduino.arduino-cloud-cli"
5+
6+
sign {
7+
application_identity = "Developer ID Application: ARDUINO SA (7KT7ZWMCJT)"
8+
}
9+
10+
# Ask Gon for zip output to force notarization process to take place.
11+
# The CI will ignore the zip output, using the signed binary only.
12+
zip {
13+
output_path = "unused.zip"
14+
}

0 commit comments

Comments
 (0)