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