Skip to content

Commit 2642545

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 22e9940 commit 2642545

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
@@ -318,8 +318,9 @@ jobs:
318318
- name: Sign app bundle
319319
run: gon -log-level=debug -log-json "${{ env.GON_CONFIG_PATH }}"
320320

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

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

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

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

384385
# This job is responsible for generating the installers (using installbuilder)
@@ -525,8 +526,8 @@ jobs:
525526
- name: unzip artifact
526527
working-directory: ArduinoCloudAgent.app
527528
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
530531
531532
- name: Install create-dmg
532533
run: brew install create-dmg

0 commit comments

Comments
 (0)