@@ -11,7 +11,7 @@ permissions:
11
11
12
12
env :
13
13
# As defined by the Taskfile's PROJECT_NAME variable
14
- PROJECT_NAME : arduino-create -agent
14
+ PROJECT_NAME : arduino-cloud -agent
15
15
TARGET : " /CreateAgent/Stable/"
16
16
VERSION_TARGET : " arduino-create-static/agent-metadata/"
17
17
AWS_REGION : " us-east-1" # or https://github.com/aws/aws-cli/issues/5623
@@ -132,7 +132,7 @@ jobs:
132
132
- name : Create autoupdate files for win32
133
133
run : go-selfupdate -platform windows-${{ matrix.arch }} ${{ env.PROJECT_NAME }}${{ matrix.ext }} ${TAG_VERSION}
134
134
if : matrix.arch == '386' && matrix.os == 'windows-2019' && steps.prerelease.outputs.IS_PRE != 'true'
135
-
135
+
136
136
- name : configure aws credentials
137
137
uses : aws-actions/configure-aws-credentials@v4
138
138
with :
@@ -199,8 +199,8 @@ jobs:
199
199
200
200
<key>CFBundleIconFile</key> <string>AppIcon.icns</string>
201
201
202
- <key>CFBundleName</key> <string>Arduino Create Agent</string>
203
- <key>CFBundleExecutable</key> <string>Arduino_Create_Agent </string>
202
+ <key>CFBundleName</key> <string>Arduino Cloud Agent</string>
203
+ <key>CFBundleExecutable</key> <string>Arduino_Cloud_Agent </string>
204
204
<key>CFBundleIdentifier</key> <string>create.arduino.cc</string>
205
205
206
206
<key>CFBundleVersion</key> <string>${GITHUB_REF##*/}</string>
@@ -215,14 +215,14 @@ jobs:
215
215
EOF
216
216
217
217
- name : Tar bundle to keep permissions
218
- run : tar -cvf ArduinoCreateAgent .app_${{ matrix.arch }}.tar -C skel/ .
218
+ run : tar -cvf ArduinoCloudAgent .app_${{ matrix.arch }}.tar -C skel/ .
219
219
220
220
- name : Upload artifacts
221
221
uses : actions/upload-artifact@v4
222
222
with :
223
223
if-no-files-found : error
224
- name : ArduinoCreateAgent .app_${{ matrix.arch }}
225
- path : ArduinoCreateAgent .app_${{ matrix.arch }}.tar
224
+ name : ArduinoCloudAgent .app_${{ matrix.arch }}
225
+ path : ArduinoCloudAgent .app_${{ matrix.arch }}.tar
226
226
227
227
# 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.
228
228
notarize-macos :
@@ -243,10 +243,10 @@ jobs:
243
243
- name : Download artifact
244
244
uses : actions/download-artifact@v4
245
245
with :
246
- name : ArduinoCreateAgent .app_${{ matrix.arch }}
246
+ name : ArduinoCloudAgent .app_${{ matrix.arch }}
247
247
248
248
- name : un-Tar bundle
249
- run : tar -xvf ArduinoCreateAgent .app_${{ matrix.arch }}.tar
249
+ run : tar -xvf ArduinoCloudAgent .app_${{ matrix.arch }}.tar
250
250
251
251
- name : Import Code-Signing Certificates
252
252
run : |
@@ -286,7 +286,7 @@ jobs:
286
286
run : |
287
287
cat > "${{ env.GON_CONFIG_PATH }}" <<EOF
288
288
# See: https://github.com/mitchellh/gon#configuration-file
289
- source = ["ArduinoCreateAgent .app"]
289
+ source = ["ArduinoCloudAgent .app"]
290
290
bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}"
291
291
292
292
sign {
@@ -300,7 +300,7 @@ jobs:
300
300
run : gon -log-level=debug -log-json "${{ env.GON_CONFIG_PATH }}"
301
301
302
302
- name : Zip output app bundle
303
- run : ditto -c -k ArduinoCreateAgent .app/ ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip
303
+ run : ditto -c -k ArduinoCloudAgent .app/ ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip
304
304
305
305
- name : Remove gon used for code signing
306
306
run : |
@@ -311,19 +311,19 @@ jobs:
311
311
run : |
312
312
wget -q https://github.com/Bearer/gon/releases/download/v0.0.27/gon_macos.zip
313
313
unzip gon_macos.zip -d /usr/local/bin
314
-
314
+
315
315
- name : Write gon config to file
316
316
run : |
317
317
cat > "${{ env.GON_CONFIG_PATH }}" <<EOF
318
318
# See: https://github.com/Bearer/gon#configuration-file
319
319
320
320
notarize {
321
- path = "ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip"
321
+ path = "ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip"
322
322
bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}"
323
323
}
324
324
325
325
EOF
326
-
326
+
327
327
- name : Notarize app bundle
328
328
run : |
329
329
gon -log-level=debug -log-json "${{ env.GON_CONFIG_PATH }}"
@@ -337,15 +337,15 @@ jobs:
337
337
if : ${{ needs.build.outputs.prerelease != 'true' }}
338
338
339
339
- name : Upload autoupdate bundle to Arduino downloads servers
340
- 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
340
+ 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
341
341
if : ${{ needs.build.outputs.prerelease != 'true' }}
342
342
343
343
- name : Generate json file used for the new autoupdate
344
344
run : |
345
345
cat > darwin-${{ matrix.arch }}-bundle.json <<EOF
346
346
{
347
347
"Version": "${GITHUB_REF/refs\/tags\//}",
348
- "Sha256": "$(shasum -a 256 ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip | awk '{print $1}' | xxd -r -p | base64)"
348
+ "Sha256": "$(shasum -a 256 ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip | awk '{print $1}' | xxd -r -p | base64)"
349
349
}
350
350
EOF
351
351
if : ${{ needs.build.outputs.prerelease != 'true' }}
@@ -358,8 +358,8 @@ jobs:
358
358
- name : Upload artifact
359
359
uses : actions/upload-artifact@v4
360
360
with :
361
- name : ArduinoCreateAgent .app_${{ matrix.arch }}_notarized
362
- path : ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip
361
+ name : ArduinoCloudAgent .app_${{ matrix.arch }}_notarized
362
+ path : ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip
363
363
if-no-files-found : error
364
364
365
365
# This job is responsible for generating the installers (using installbuilder)
@@ -425,14 +425,14 @@ jobs:
425
425
run : ${{ env.INSTALLBUILDER_PATH }} build installer.xml ${{ matrix.installbuilder-name }} --verbose --license /tmp/license.xml --setvars ${{ env.INSTALLER_VARS }} architecture=${{ matrix.arch }}
426
426
427
427
- name : Generate archive
428
- run : tar -czvf ArduinoCreateAgent -${GITHUB_REF##*/}-${{ matrix.platform-name }}-${{ matrix.arch }}-installer.tar.gz ArduinoCreateAgent -${GITHUB_REF##*/}-${{ matrix.platform-name }}-${{ matrix.arch }}-installer${{matrix.installer-extension}}
428
+ run : tar -czvf ArduinoCloudAgent -${GITHUB_REF##*/}-${{ matrix.platform-name }}-${{ matrix.arch }}-installer.tar.gz ArduinoCloudAgent -${GITHUB_REF##*/}-${{ matrix.platform-name }}-${{ matrix.arch }}-installer${{matrix.installer-extension}}
429
429
if : matrix.os == 'ubuntu-20.04'
430
430
431
431
- name : Upload artifacts
432
432
uses : actions/upload-artifact@v4
433
433
with :
434
- name : ArduinoCreateAgent -${{ matrix.platform-name }}-${{ matrix.arch }}
435
- path : ArduinoCreateAgent *
434
+ name : ArduinoCloudAgent -${{ matrix.platform-name }}-${{ matrix.arch }}
435
+ path : ArduinoCloudAgent *
436
436
if-no-files-found : error
437
437
438
438
# This job will sign the Windows installer
@@ -449,17 +449,17 @@ jobs:
449
449
# We are hardcoding the path for signtool because is not present on the windows PATH env var by default.
450
450
# Keep in mind that this path could change when upgrading to a new runner version
451
451
SIGNTOOL_PATH : " C:/Program Files (x86)/Windows Kits/10/bin/10.0.19041.0/x86/signtool.exe"
452
-
452
+
453
453
strategy :
454
454
matrix :
455
455
arch : [amd64, 386]
456
-
456
+
457
457
steps :
458
458
- name : Download artifact
459
459
uses : actions/download-artifact@v4
460
460
with :
461
- name : ArduinoCreateAgent -windows-${{ matrix.arch }}
462
-
461
+ name : ArduinoCloudAgent -windows-${{ matrix.arch }}
462
+
463
463
- name : Save Win signing certificate to file
464
464
run : echo "${{ secrets.INSTALLER_CERT_WINDOWS_CER }}" | base64 --decode > ${{ env.INSTALLER_CERT_WINDOWS_CER}}
465
465
@@ -468,15 +468,15 @@ jobs:
468
468
CERT_PASSWORD : ${{ secrets.INSTALLER_CERT_WINDOWS_PASSWORD }}
469
469
CONTAINER_NAME : ${{ secrets.INSTALLER_CERT_WINDOWS_CONTAINER }}
470
470
# https://stackoverflow.com/questions/17927895/automate-extended-validation-ev-code-signing-with-safenet-etoken
471
- run : |
472
- "${{ env.SIGNTOOL_PATH }}" sign -d "Arduino Create Agent" -f ${{ env.INSTALLER_CERT_WINDOWS_CER}} -csp "eToken Base Cryptographic Provider" -k "[{{${{ env.CERT_PASSWORD }}}}]=${{ env.CONTAINER_NAME }}" -fd sha256 -tr http://timestamp.digicert.com -td SHA256 -v "ArduinoCreateAgent -${GITHUB_REF##*/}-windows-${{ matrix.arch }}-installer.exe"
471
+ run : |
472
+ "${{ env.SIGNTOOL_PATH }}" sign -d "Arduino Cloud Agent" -f ${{ env.INSTALLER_CERT_WINDOWS_CER}} -csp "eToken Base Cryptographic Provider" -k "[{{${{ env.CERT_PASSWORD }}}}]=${{ env.CONTAINER_NAME }}" -fd sha256 -tr http://timestamp.digicert.com -td SHA256 -v "ArduinoCloudAgent -${GITHUB_REF##*/}-windows-${{ matrix.arch }}-installer.exe"
473
473
474
474
- name : Upload artifacts
475
475
uses : actions/upload-artifact@v4
476
476
with :
477
477
if-no-files-found : error
478
- name : ArduinoCreateAgent -windows-${{ matrix.arch }}-signed
479
- path : ArduinoCreateAgent -*-windows-${{ matrix.arch }}-installer.exe
478
+ name : ArduinoCloudAgent -windows-${{ matrix.arch }}-signed
479
+ path : ArduinoCloudAgent -*-windows-${{ matrix.arch }}-installer.exe
480
480
481
481
# This job will generate a dmg mac installer, sign/notarize it.
482
482
generate-sign-dmg :
@@ -496,30 +496,30 @@ jobs:
496
496
- name : Download artifact
497
497
uses : actions/download-artifact@v4
498
498
with :
499
- name : ArduinoCreateAgent .app_${{ matrix.arch }}_notarized
500
- path : ArduinoCreateAgent .app
499
+ name : ArduinoCloudAgent .app_${{ matrix.arch }}_notarized
500
+ path : ArduinoCloudAgent .app
501
501
502
502
- name : unzip artifact
503
- working-directory : ArduinoCreateAgent .app
503
+ working-directory : ArduinoCloudAgent .app
504
504
run : |
505
- unzip ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip
506
- rm ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip
505
+ unzip ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip
506
+ rm ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip
507
507
508
508
- name : Install create-dmg
509
509
run : brew install create-dmg
510
510
511
511
- name : Genarate DMG
512
512
run : |
513
513
create-dmg \
514
- --volname "ArduinoCreateAgent " \
514
+ --volname "ArduinoCloudAgent " \
515
515
--background "installer_icons/background.tiff" \
516
516
--window-pos 200 120 \
517
517
--window-size 500 320 \
518
518
--icon-size 80 \
519
- --icon "ArduinoCreateAgent .app" 125 150 \
519
+ --icon "ArduinoCloudAgent .app" 125 150 \
520
520
--app-drop-link 375 150 \
521
- "ArduinoCreateAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg" \
522
- "ArduinoCreateAgent .app"
521
+ "ArduinoCloudAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg" \
522
+ "ArduinoCloudAgent .app"
523
523
524
524
- name : Import Code-Signing Certificates
525
525
run : |
@@ -549,7 +549,7 @@ jobs:
549
549
# gon does not allow env variables in config file (https://github.com/mitchellh/gon/issues/20)
550
550
run : |
551
551
cat > gon.config_installer.hcl <<EOF
552
- source = ["ArduinoCreateAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg"]
552
+ source = ["ArduinoCloudAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg"]
553
553
bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}-installer"
554
554
555
555
sign {
@@ -558,7 +558,7 @@ jobs:
558
558
559
559
# Ask Gon for zip output to force notarization process to take place.
560
560
zip {
561
- output_path = "ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip"
561
+ output_path = "ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip"
562
562
}
563
563
EOF
564
564
@@ -567,13 +567,13 @@ jobs:
567
567
568
568
# tar dmg file to keep executable permission
569
569
- name : Tar files to keep permissions
570
- run : tar -cvf ArduinoCreateAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.tar ArduinoCreateAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg
570
+ run : tar -cvf ArduinoCloudAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.tar ArduinoCloudAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg
571
571
572
572
- name : Upload artifacts
573
573
uses : actions/upload-artifact@v4
574
574
with :
575
- name : ArduinoCreateAgent -osx-${{ matrix.arch }}
576
- path : ArduinoCreateAgent *.tar
575
+ name : ArduinoCloudAgent -osx-${{ matrix.arch }}
576
+ path : ArduinoCloudAgent *.tar
577
577
if-no-files-found : error
578
578
579
579
create-release :
@@ -594,11 +594,11 @@ jobs:
594
594
- name : prepare artifacts for the release
595
595
run : |
596
596
mkdir release
597
- chmod -v +x ArduinoCreateAgent -linux-amd64/*.run
598
- mv -v ArduinoCreateAgent -linux-amd64/* release/
599
- cat ArduinoCreateAgent -osx-amd64/*.tar | tar -xvf - -i -C release/
600
- rm -v release/._ArduinoCreateAgent *.dmg
601
- mv -v ArduinoCreateAgent -windows*-signed/* release/
597
+ chmod -v +x ArduinoCloudAgent -linux-amd64/*.run
598
+ mv -v ArduinoCloudAgent -linux-amd64/* release/
599
+ cat ArduinoCloudAgent -osx-amd64/*.tar | tar -xvf - -i -C release/
600
+ rm -v release/._ArduinoCloudAgent *.dmg
601
+ mv -v ArduinoCloudAgent -windows*-signed/* release/
602
602
603
603
- name : VirusTotal Scan
604
604
id : virustotal_step
0 commit comments