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
* Upload the signed bundle to s3 (#756)
* remove some code duplication regarding prerelease calculation
* add upload of the notarized bundle to s3 download bucket
* add upload of the notarized bundle to s3 download bucket
* 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
* Implemented the autoupdater for MacOS
* Added more logging and fixed upgrade procedure
* Use MacOS openApplicationAtURL syscall to re-run updated app
* Bump minimum required macosx version to 10.15
This is required because the auto-update uses the function
warning: 'openApplicationAtURL:configuration:completionHandler:' is only available on macOS 10.15 or newer [-Wunguarded-availability-new]
* Removed diff-based updates
* Fixed update URL for different update methods
* fix invalid workflow
* Always complete the old auto-upgrade procedure
This is required for clients upgrading from versions <=1.2.7
* Moved the syscall to openApplicationAtURL inside Systray
* Added fallback restart for macosx.
* added some more logging
---------
Co-authored-by: Umberto Baldi <[email protected]>
Co-authored-by: Umberto Baldi <[email protected]>
# The notarize-macos job will download the macos bundle from the previous job, sign, notarize and re-upload it.
222
+
# 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.
208
223
notarize-macos:
209
224
name: Notarize bundle
225
+
226
+
# for not they are exaclty the same
227
+
strategy:
228
+
matrix:
229
+
arch: [amd64, arm64]
230
+
210
231
runs-on: macos-12
211
232
env:
212
233
GON_PATH: ${{ github.workspace }}/gon
213
-
needs: create-macos-bundle
234
+
needs: [build, create-macos-bundle]
214
235
215
236
steps:
216
237
- name: Download artifact
217
238
uses: actions/download-artifact@v3
218
239
with:
219
-
name: ArduinoCreateAgent.app
240
+
name: ArduinoCreateAgent.app_${{ matrix.arch }}
220
241
221
242
- name: un-Tar bundle
222
-
run: tar -xvf ArduinoCreateAgent.app.tar
243
+
run: tar -xvf ArduinoCreateAgent.app_${{ matrix.arch }}.tar
223
244
224
245
- name: Import Code-Signing Certificates
225
246
run: |
@@ -270,18 +291,37 @@ jobs:
270
291
# Ask Gon for zip output to force notarization process to take place.
- name: Upload autoupdate bundle to Arduino downloads servers
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
338
379
339
380
container:
340
381
image: floydpink/ubuntu-install-builder:22.10.0
@@ -493,7 +534,7 @@ jobs:
493
534
494
535
create-release:
495
536
runs-on: ubuntu-20.04
496
-
needs: code-sign-mac-installers
537
+
needs: [build, code-sign-mac-installers]
497
538
498
539
steps:
499
540
- name: Checkout
@@ -504,14 +545,6 @@ jobs:
504
545
- name: Download artifact
505
546
uses: actions/download-artifact@v3 # download all the artifacts
506
547
507
-
- name: Identify Prerelease
508
-
# This is a workaround while waiting for create-release action to implement auto pre-release based on tag
0 commit comments