Skip to content

Commit 193b554

Browse files
Revert changes on the zipped notarized app bundle uploaded to s3
We are keeping it this way because it is used by the autoupdate procedure on macos
1 parent 0dfaf82 commit 193b554

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/release.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,9 @@ jobs:
319319
- name: Sign app bundle
320320
run: gon -log-level=debug -log-json "${{ env.GON_CONFIG_PATH }}"
321321

322+
# the zip name must not change because it would interfere with the autoupdate process on macos
322323
- 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
324325

325326
- name: Remove gon used for code signing
326327
run: |
@@ -338,7 +339,7 @@ jobs:
338339
# See: https://github.com/Bearer/gon#configuration-file
339340
340341
notarize {
341-
path = "ArduinoCloudAgent.app_${{ matrix.arch }}_notarized.zip"
342+
path = "ArduinoCreateAgent.app_${{ matrix.arch }}_notarized.zip"
342343
bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}"
343344
}
344345
@@ -357,15 +358,15 @@ jobs:
357358
if: ${{ needs.build.outputs.prerelease != 'true' }}
358359

359360
- 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
361362
if: ${{ needs.build.outputs.prerelease != 'true' }}
362363

363364
- name: Generate json file used for the new autoupdate
364365
run: |
365366
cat > darwin-${{ matrix.arch }}-bundle.json <<EOF
366367
{
367368
"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)"
369370
}
370371
EOF
371372
if: ${{ needs.build.outputs.prerelease != 'true' }}
@@ -379,7 +380,7 @@ jobs:
379380
uses: actions/upload-artifact@v4
380381
with:
381382
name: ArduinoCloudAgent.app_${{ matrix.arch }}_notarized
382-
path: ArduinoCloudAgent.app_${{ matrix.arch }}_notarized.zip
383+
path: ArduinoCreateAgent.app_${{ matrix.arch }}_notarized.zip
383384
if-no-files-found: error
384385

385386
# This job is responsible for generating the installers (using installbuilder)
@@ -528,8 +529,8 @@ jobs:
528529
- name: unzip artifact
529530
working-directory: ArduinoCloudAgent.app
530531
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
533534
534535
- name: Install create-dmg
535536
run: brew install create-dmg

0 commit comments

Comments
 (0)