@@ -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
@@ -205,8 +205,8 @@ jobs:
205
205
- name : Make executable
206
206
run : chmod -v +x ${{ env.EXE_PATH }}${{ env.PROJECT_NAME }}
207
207
208
- - name : Rename executable to Arduino_Create_Agent
209
- run : mv -v ${{ env.EXE_PATH }}${{ env.PROJECT_NAME }} ${{ env.EXE_PATH }}Arduino_Create_Agent
208
+ - name : Rename executable to Arduino_Cloud_Agent
209
+ run : mv -v ${{ env.EXE_PATH }}${{ env.PROJECT_NAME }} ${{ env.EXE_PATH }}Arduino_Cloud_Agent
210
210
211
211
- name : get year
212
212
run : echo "YEAR=$(date "+%Y")" >> $GITHUB_ENV
@@ -218,8 +218,8 @@ jobs:
218
218
219
219
<key>CFBundleIconFile</key> <string>AppIcon.icns</string>
220
220
221
- <key>CFBundleName</key> <string>Arduino Create Agent</string>
222
- <key>CFBundleExecutable</key> <string>Arduino_Create_Agent </string>
221
+ <key>CFBundleName</key> <string>Arduino Cloud Agent</string>
222
+ <key>CFBundleExecutable</key> <string>Arduino_Cloud_Agent </string>
223
223
<key>CFBundleIdentifier</key> <string>create.arduino.cc</string>
224
224
225
225
<key>CFBundleVersion</key> <string>${GITHUB_REF##*/}</string>
@@ -234,14 +234,14 @@ jobs:
234
234
EOF
235
235
236
236
- name : Tar bundle to keep permissions
237
- run : tar -cvf ArduinoCreateAgent .app_${{ matrix.arch }}.tar -C skel/ .
237
+ run : tar -cvf ArduinoCloudAgent .app_${{ matrix.arch }}.tar -C skel/ .
238
238
239
239
- name : Upload artifacts
240
240
uses : actions/upload-artifact@v4
241
241
with :
242
242
if-no-files-found : error
243
- name : ArduinoCreateAgent .app_${{ matrix.arch }}
244
- path : ArduinoCreateAgent .app_${{ matrix.arch }}.tar
243
+ name : ArduinoCloudAgent .app_${{ matrix.arch }}
244
+ path : ArduinoCloudAgent .app_${{ matrix.arch }}.tar
245
245
246
246
# 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.
247
247
notarize-macos :
@@ -262,10 +262,10 @@ jobs:
262
262
- name : Download artifact
263
263
uses : actions/download-artifact@v4
264
264
with :
265
- name : ArduinoCreateAgent .app_${{ matrix.arch }}
265
+ name : ArduinoCloudAgent .app_${{ matrix.arch }}
266
266
267
267
- name : un-Tar bundle
268
- run : tar -xvf ArduinoCreateAgent .app_${{ matrix.arch }}.tar
268
+ run : tar -xvf ArduinoCloudAgent .app_${{ matrix.arch }}.tar
269
269
270
270
- name : Import Code-Signing Certificates
271
271
run : |
@@ -319,7 +319,7 @@ jobs:
319
319
run : gon -log-level=debug -log-json "${{ env.GON_CONFIG_PATH }}"
320
320
321
321
- name : Zip output app bundle
322
- run : ditto -c -k ArduinoCreateAgent.app/ ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip
322
+ run : ditto -c -k ArduinoCreateAgent.app/ ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip
323
323
324
324
- name : Remove gon used for code signing
325
325
run : |
@@ -337,7 +337,7 @@ jobs:
337
337
# See: https://github.com/Bearer/gon#configuration-file
338
338
339
339
notarize {
340
- path = "ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip"
340
+ path = "ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip"
341
341
bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}"
342
342
}
343
343
@@ -356,15 +356,15 @@ jobs:
356
356
if : ${{ needs.build.outputs.prerelease != 'true' }}
357
357
358
358
- name : Upload autoupdate bundle to Arduino downloads servers
359
- 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
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
360
if : ${{ needs.build.outputs.prerelease != 'true' }}
361
361
362
362
- name : Generate json file used for the new autoupdate
363
363
run : |
364
364
cat > darwin-${{ matrix.arch }}-bundle.json <<EOF
365
365
{
366
366
"Version": "${GITHUB_REF/refs\/tags\//}",
367
- "Sha256": "$(shasum -a 256 ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip | awk '{print $1}' | xxd -r -p | base64)"
367
+ "Sha256": "$(shasum -a 256 ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip | awk '{print $1}' | xxd -r -p | base64)"
368
368
}
369
369
EOF
370
370
if : ${{ needs.build.outputs.prerelease != 'true' }}
@@ -377,8 +377,8 @@ jobs:
377
377
- name : Upload artifact
378
378
uses : actions/upload-artifact@v4
379
379
with :
380
- name : ArduinoCreateAgent .app_${{ matrix.arch }}_notarized
381
- path : ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip
380
+ name : ArduinoCloudAgent .app_${{ matrix.arch }}_notarized
381
+ path : ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip
382
382
if-no-files-found : error
383
383
384
384
# This job is responsible for generating the installers (using installbuilder)
@@ -443,15 +443,18 @@ jobs:
443
443
- name : Launch Bitrock installbuilder
444
444
run : ${{ env.INSTALLBUILDER_PATH }} build installer.xml ${{ matrix.installbuilder-name }} --verbose --license /tmp/license.xml --setvars ${{ env.INSTALLER_VARS }} architecture=${{ matrix.arch }}
445
445
446
+ - name : Rename installer to ArduinoCloudAgent
447
+ run : mv -v ArduinoCreateAgent-${GITHUB_REF##*/}-${{ matrix.platform-name }}-${{ matrix.arch }}-installer${{matrix.installer-extension}} ArduinoCloudAgent-${GITHUB_REF##*/}-${{ matrix.platform-name }}-${{ matrix.arch }}-installer${{matrix.installer-extension}}
448
+
446
449
- name : Generate archive
447
- 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}}
450
+ 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}}
448
451
if : matrix.os == 'ubuntu-20.04'
449
452
450
453
- name : Upload artifacts
451
454
uses : actions/upload-artifact@v4
452
455
with :
453
- name : ArduinoCreateAgent -${{ matrix.platform-name }}-${{ matrix.arch }}
454
- path : ArduinoCreateAgent *
456
+ name : ArduinoCloudAgent -${{ matrix.platform-name }}-${{ matrix.arch }}
457
+ path : ArduinoCloudAgent *
455
458
if-no-files-found : error
456
459
457
460
# This job will sign the Windows installer
@@ -477,7 +480,7 @@ jobs:
477
480
- name : Download artifact
478
481
uses : actions/download-artifact@v4
479
482
with :
480
- name : ArduinoCreateAgent -windows-${{ matrix.arch }}
483
+ name : ArduinoCloudAgent -windows-${{ matrix.arch }}
481
484
482
485
- name : Save Win signing certificate to file
483
486
run : echo "${{ secrets.INSTALLER_CERT_WINDOWS_CER }}" | base64 --decode > ${{ env.INSTALLER_CERT_WINDOWS_CER}}
@@ -488,18 +491,18 @@ jobs:
488
491
CONTAINER_NAME : ${{ secrets.INSTALLER_CERT_WINDOWS_CONTAINER }}
489
492
# https://stackoverflow.com/questions/17927895/automate-extended-validation-ev-code-signing-with-safenet-etoken
490
493
run : |
491
- "${{ 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"
494
+ "${{ 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"
492
495
493
496
- name : Upload artifacts
494
497
uses : actions/upload-artifact@v4
495
498
with :
496
499
if-no-files-found : error
497
- name : ArduinoCreateAgent -windows-${{ matrix.arch }}-signed
498
- path : ArduinoCreateAgent -*-windows-${{ matrix.arch }}-installer.exe
500
+ name : ArduinoCloudAgent -windows-${{ matrix.arch }}-signed
501
+ path : ArduinoCloudAgent -*-windows-${{ matrix.arch }}-installer.exe
499
502
500
503
# This step is needed because the self hosted runner does not delete files automatically
501
504
- name : Clean up EXE
502
- run : rm ArduinoCreateAgent -*-windows-${{ matrix.arch }}-installer.exe
505
+ run : rm ArduinoCloudAgent -*-windows-${{ matrix.arch }}-installer.exe
503
506
504
507
# This job will generate a dmg mac installer, sign/notarize it.
505
508
generate-sign-dmg :
@@ -519,30 +522,30 @@ jobs:
519
522
- name : Download artifact
520
523
uses : actions/download-artifact@v4
521
524
with :
522
- name : ArduinoCreateAgent .app_${{ matrix.arch }}_notarized
523
- path : ArduinoCreateAgent .app
525
+ name : ArduinoCloudAgent .app_${{ matrix.arch }}_notarized
526
+ path : ArduinoCloudAgent .app
524
527
525
528
- name : unzip artifact
526
- working-directory : ArduinoCreateAgent .app
529
+ working-directory : ArduinoCloudAgent .app
527
530
run : |
528
- unzip ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip
529
- rm ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip
531
+ unzip ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip
532
+ rm ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip
530
533
531
534
- name : Install create-dmg
532
535
run : brew install create-dmg
533
536
534
537
- name : Genarate DMG
535
538
run : |
536
539
create-dmg \
537
- --volname "ArduinoCreateAgent " \
540
+ --volname "ArduinoCloudAgent " \
538
541
--background "installer_icons/background.tiff" \
539
542
--window-pos 200 120 \
540
543
--window-size 500 320 \
541
544
--icon-size 80 \
542
- --icon "ArduinoCreateAgent .app" 125 150 \
545
+ --icon "ArduinoCloudAgent .app" 125 150 \
543
546
--app-drop-link 375 150 \
544
- "ArduinoCreateAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg" \
545
- "ArduinoCreateAgent .app"
547
+ "ArduinoCloudAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg" \
548
+ "ArduinoCloudAgent .app"
546
549
547
550
- name : Import Code-Signing Certificates
548
551
run : |
@@ -572,7 +575,7 @@ jobs:
572
575
# gon does not allow env variables in config file (https://github.com/mitchellh/gon/issues/20)
573
576
run : |
574
577
cat > gon.config_installer.hcl <<EOF
575
- source = ["ArduinoCreateAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg"]
578
+ source = ["ArduinoCloudAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg"]
576
579
bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}-installer"
577
580
578
581
sign {
@@ -581,7 +584,7 @@ jobs:
581
584
582
585
# Ask Gon for zip output to force notarization process to take place.
583
586
zip {
584
- output_path = "ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip"
587
+ output_path = "ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip"
585
588
}
586
589
EOF
587
590
@@ -590,13 +593,13 @@ jobs:
590
593
591
594
# tar dmg file to keep executable permission
592
595
- name : Tar files to keep permissions
593
- run : tar -cvf ArduinoCreateAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.tar ArduinoCreateAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg
596
+ run : tar -cvf ArduinoCloudAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.tar ArduinoCloudAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg
594
597
595
598
- name : Upload artifacts
596
599
uses : actions/upload-artifact@v4
597
600
with :
598
- name : ArduinoCreateAgent -osx-${{ matrix.arch }}
599
- path : ArduinoCreateAgent *.tar
601
+ name : ArduinoCloudAgent -osx-${{ matrix.arch }}
602
+ path : ArduinoCloudAgent *.tar
600
603
if-no-files-found : error
601
604
602
605
create-release :
@@ -617,11 +620,11 @@ jobs:
617
620
- name : prepare artifacts for the release
618
621
run : |
619
622
mkdir release
620
- chmod -v +x ArduinoCreateAgent -linux-amd64/*.run
621
- mv -v ArduinoCreateAgent -linux-amd64/* release/
622
- cat ArduinoCreateAgent -osx-amd64/*.tar | tar -xvf - -i -C release/
623
- rm -v release/._ArduinoCreateAgent *.dmg
624
- mv -v ArduinoCreateAgent -windows*-signed/* release/
623
+ chmod -v +x ArduinoCloudAgent -linux-amd64/*.run
624
+ mv -v ArduinoCloudAgent -linux-amd64/* release/
625
+ cat ArduinoCloudAgent -osx-amd64/*.tar | tar -xvf - -i -C release/
626
+ rm -v release/._ArduinoCloudAgent *.dmg
627
+ mv -v ArduinoCloudAgent -windows*-signed/* release/
625
628
626
629
- name : VirusTotal Scan
627
630
id : virustotal_step
0 commit comments