Skip to content

Commit 9318fc4

Browse files
committed
try to use this fork (https://github.com/darkvertex/gon/tree/deep_sign_support) to use deep notarization, since this is not yet merged mitchellh/gon#42
1 parent 45efee1 commit 9318fc4

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ env:
99
AWS_PLUGIN_TARGET: /tools/
1010
# See: https://github.com/actions/setup-python/tree/v3#available-versions-of-python
1111
PYTHON_VERSION: "3.7"
12+
GO_VERSION: "1.17"
1213
MCUBOOT_PATH: ${{ github.workspace }}/mcuboot
1314
IMGTOOL_PACKING_PATH: ${{ github.workspace }}/imgtool-packing
15+
GON_PATH: ${{ github.workspace }}/gon
1416

1517
on:
1618
push:
@@ -215,18 +217,31 @@ jobs:
215217
-k "${{ env.KEYCHAIN_PASSWORD }}" \
216218
"${{ env.KEYCHAIN }}"
217219
220+
- name: Install Go
221+
uses: actions/setup-go@v3
222+
with:
223+
go-version: ${{ env.GO_VERSION }}
224+
218225
- name: Install gon for code signing and app notarization
226+
uses: actions/checkout@v3
227+
with:
228+
repository: darkvertex/gon #this fork has support for --deep notarization
229+
path: ${{ env.GON_PATH }}
230+
ref: deep_sign_support
231+
232+
- name: Build gon
233+
working-directory: ${{ env.GON_PATH }}/
219234
run: |
220-
wget -q https://github.com/mitchellh/gon/releases/download/v0.2.3/gon_macos.zip
221-
unzip gon_macos.zip -d /usr/local/bin
235+
ls -lah
236+
go build
237+
mv gon /usr/local/bin
222238
223239
- name: Sign and notarize binary
224240
env:
225241
AC_USERNAME: ${{ secrets.AC_USERNAME }}
226242
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
227243
run: |
228-
# gon gon.config.hcl
229-
codesign -s "Developer ID Application: ARDUINO SA (7KT7ZWMCJT)" -v --deep --force --timestamp --entitlements entitlements.plist -o runtime dist/imgtool_macOS_64bit/imgtool
244+
gon gon.config.hcl
230245
231246
- name: Re-package binary
232247
# This step performs the following:

gon.config.hcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ bundle_id = "cc.arduino.imgtool"
66
sign {
77
application_identity = "Developer ID Application: ARDUINO SA (7KT7ZWMCJT)"
88
entitlements_file = "entitlements.plist"
9+
deep = true
910
}
1011

1112
# Ask Gon for zip output to force notarization process to take place.

0 commit comments

Comments
 (0)