You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add json to enable autoupdate with the new agent logic (#759)
* add json to enable autoupdate with the new agent logic
* binary output of the archive https://unix.stackexchange.com/questions/3675/how-can-i-get-a-base64-encoded-shax-on-the-cli
* workaround to allow darwin-arm64 to autoupdate
* parallelize bundle creation and notarization.
This will be helpful if/when we decide to build for darwin-arm64.
For now this is useful because we do not offer a binary for m1 yet,
`runtime.GOARCH` on an m1 machine returns ARM64, so the call for the update file would fail
# The notarize-macos job will download the macos bundle from the previous job, sign, notarize and re-upload it, uploading it also on s3 download servers for the autoupdate.
210
223
notarize-macos:
211
224
name: Notarize bundle
225
+
226
+
# for not they are exaclty the same
227
+
strategy:
228
+
matrix:
229
+
arch: [amd64, arm64]
230
+
212
231
runs-on: macos-12
213
232
env:
214
233
GON_PATH: ${{ github.workspace }}/gon
@@ -218,10 +237,10 @@ jobs:
218
237
- name: Download artifact
219
238
uses: actions/download-artifact@v3
220
239
with:
221
-
name: ArduinoCreateAgent.app
240
+
name: ArduinoCreateAgent.app_${{ matrix.arch }}
222
241
223
242
- name: un-Tar bundle
224
-
run: tar -xvf ArduinoCreateAgent.app.tar
243
+
run: tar -xvf ArduinoCreateAgent.app_${{ matrix.arch }}.tar
225
244
226
245
- name: Import Code-Signing Certificates
227
246
run: |
@@ -272,22 +291,37 @@ jobs:
272
291
# Ask Gon for zip output to force notarization process to take place.
- name: Upload autoupdate bundle to Arduino downloads servers
283
-
run: aws s3 cp ArduinoCreateAgent.app_notarized.zip s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.TARGET }}${GITHUB_REF/refs\/tags\//}/ # the version should be created in th the build job
302
+
run: aws s3 cp ArduinoCreateAgent.app_${{ matrix.arch }}_notarized.zip s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.TARGET }}${GITHUB_REF/refs\/tags\//}/ # the version should be created in th the build job
artifact-name: ArduinoCreateAgent.app_notarized # this artifact contains the Contents directory
377
+
artifact-name: ArduinoCreateAgent.app_amd64_notarized # this artifact contains the Contents directory
378
+
# here we support only amd64 for macos. Hopefully in the future installbuilder for macOS will be removed, see https://github.com/arduino/arduino-create-agent/issues/739
0 commit comments