File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 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
1517on :
1618 push :
@@ -215,18 +217,29 @@ 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+
231+ - name : Build gon
232+ working-directory : ${{ env.GON_PATH }}
219233 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
234+ go build
235+ mv gon /usr/local/bin
222236
223237 - name : Sign and notarize binary
224238 env :
225239 AC_USERNAME : ${{ secrets.AC_USERNAME }}
226240 AC_PASSWORD : ${{ secrets.AC_PASSWORD }}
227241 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
242+ gon gon.config.hcl
230243
231244 - name : Re-package binary
232245 # This step performs the following:
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ bundle_id = "cc.arduino.imgtool"
66sign {
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.
You can’t perform that action at this time.
0 commit comments