@@ -318,8 +318,9 @@ jobs:
318
318
- name : Sign app bundle
319
319
run : gon -log-level=debug -log-json "${{ env.GON_CONFIG_PATH }}"
320
320
321
+ # the zip name must not change because it would interfere with the autoupdate process on macos
321
322
- name : Zip output app bundle
322
- run : ditto -c -k ArduinoCloudAgent.app/ ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip
323
+ run : ditto -c -k ArduinoCloudAgent.app/ ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip
323
324
324
325
- name : Remove gon used for code signing
325
326
run : |
@@ -337,7 +338,7 @@ jobs:
337
338
# See: https://github.com/Bearer/gon#configuration-file
338
339
339
340
notarize {
340
- path = "ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip"
341
+ path = "ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip"
341
342
bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}"
342
343
}
343
344
@@ -356,15 +357,15 @@ jobs:
356
357
if : ${{ needs.build.outputs.prerelease != 'true' }}
357
358
358
359
- name : Upload autoupdate bundle to Arduino downloads servers
359
- run : aws s3 cp ArduinoCloudAgent .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
360
+ 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
360
361
if : ${{ needs.build.outputs.prerelease != 'true' }}
361
362
362
363
- name : Generate json file used for the new autoupdate
363
364
run : |
364
365
cat > darwin-${{ matrix.arch }}-bundle.json <<EOF
365
366
{
366
367
"Version": "${GITHUB_REF/refs\/tags\//}",
367
- "Sha256": "$(shasum -a 256 ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip | awk '{print $1}' | xxd -r -p | base64)"
368
+ "Sha256": "$(shasum -a 256 ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip | awk '{print $1}' | xxd -r -p | base64)"
368
369
}
369
370
EOF
370
371
if : ${{ needs.build.outputs.prerelease != 'true' }}
@@ -378,7 +379,7 @@ jobs:
378
379
uses : actions/upload-artifact@v4
379
380
with :
380
381
name : ArduinoCloudAgent.app_${{ matrix.arch }}_notarized
381
- path : ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip
382
+ path : ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip
382
383
if-no-files-found : error
383
384
384
385
# This job is responsible for generating the installers (using installbuilder)
@@ -525,8 +526,8 @@ jobs:
525
526
- name : unzip artifact
526
527
working-directory : ArduinoCloudAgent.app
527
528
run : |
528
- unzip ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip
529
- rm ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip
529
+ unzip ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip
530
+ rm ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip
530
531
531
532
- name : Install create-dmg
532
533
run : brew install create-dmg
0 commit comments