@@ -11,7 +11,7 @@ permissions:
1111
1212env :
1313# As defined by the Taskfile's PROJECT_NAME variable
14- PROJECT_NAME :arduino-create -agent
14+ PROJECT_NAME :arduino-cloud -agent
1515TARGET :" /CreateAgent/Stable/"
1616VERSION_TARGET :" arduino-create-static/agent-metadata/"
1717AWS_REGION :" us-east-1" # or https://github.com/aws/aws-cli/issues/5623
@@ -132,7 +132,7 @@ jobs:
132132 -name :Create autoupdate files for win32
133133run :go-selfupdate -platform windows-${{ matrix.arch }} ${{ env.PROJECT_NAME }}${{ matrix.ext }} ${TAG_VERSION}
134134if :matrix.arch == '386' && matrix.os == 'windows-2019' && steps.prerelease.outputs.IS_PRE != 'true'
135-
135+
136136 -name :configure aws credentials
137137uses :aws-actions/configure-aws-credentials@v4
138138with :
@@ -199,8 +199,8 @@ jobs:
199199
200200 <key>CFBundleIconFile</key> <string>AppIcon.icns</string>
201201
202- <key>CFBundleName</key> <string>ArduinoCreate Agent</string>
203- <key>CFBundleExecutable</key> <string>Arduino_Create_Agent </string>
202+ <key>CFBundleName</key> <string>ArduinoCloud Agent</string>
203+ <key>CFBundleExecutable</key> <string>Arduino_Cloud_Agent </string>
204204 <key>CFBundleIdentifier</key> <string>create.arduino.cc</string>
205205
206206 <key>CFBundleVersion</key> <string>${GITHUB_REF##*/}</string>
@@ -215,14 +215,14 @@ jobs:
215215 EOF
216216
217217 -name :Tar bundle to keep permissions
218- run :tar -cvfArduinoCreateAgent .app_${{ matrix.arch }}.tar -C skel/ .
218+ run :tar -cvfArduinoCloudAgent .app_${{ matrix.arch }}.tar -C skel/ .
219219
220220 -name :Upload artifacts
221221uses :actions/upload-artifact@v4
222222with :
223223if-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
226226
227227# 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.
228228notarize-macos :
@@ -243,10 +243,10 @@ jobs:
243243 -name :Download artifact
244244uses :actions/download-artifact@v4
245245with :
246- name :ArduinoCreateAgent .app_${{ matrix.arch }}
246+ name :ArduinoCloudAgent .app_${{ matrix.arch }}
247247
248248 -name :un-Tar bundle
249- run :tar -xvfArduinoCreateAgent .app_${{ matrix.arch }}.tar
249+ run :tar -xvfArduinoCloudAgent .app_${{ matrix.arch }}.tar
250250
251251 -name :Import Code-Signing Certificates
252252run :|
@@ -286,7 +286,7 @@ jobs:
286286run :|
287287 cat > "${{ env.GON_CONFIG_PATH }}" <<EOF
288288 # See: https://github.com/mitchellh/gon#configuration-file
289- source = ["ArduinoCreateAgent .app"]
289+ source = ["ArduinoCloudAgent .app"]
290290 bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}"
291291
292292 sign {
@@ -300,7 +300,7 @@ jobs:
300300run :gon -log-level=debug -log-json "${{ env.GON_CONFIG_PATH }}"
301301
302302 -name :Zip output app bundle
303- run :ditto -c -kArduinoCreateAgent .app/ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip
303+ run :ditto -c -kArduinoCloudAgent .app/ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip
304304
305305 -name :Remove gon used for code signing
306306run :|
@@ -311,19 +311,19 @@ jobs:
311311run :|
312312 wget -q https://github.com/Bearer/gon/releases/download/v0.0.27/gon_macos.zip
313313 unzip gon_macos.zip -d /usr/local/bin
314-
314+
315315 -name :Write gon config to file
316316run :|
317317 cat > "${{ env.GON_CONFIG_PATH }}" <<EOF
318318 # See: https://github.com/Bearer/gon#configuration-file
319319
320320 notarize {
321- path = "ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip"
321+ path = "ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip"
322322 bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}"
323323 }
324324
325325 EOF
326-
326+
327327 -name :Notarize app bundle
328328run :|
329329 gon -log-level=debug -log-json "${{ env.GON_CONFIG_PATH }}"
@@ -337,15 +337,15 @@ jobs:
337337if :${{ needs.build.outputs.prerelease != 'true' }}
338338
339339 -name :Upload autoupdate bundle to Arduino downloads servers
340- run :aws s3 cpArduinoCreateAgent .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 cpArduinoCloudAgent .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
341341if :${{ needs.build.outputs.prerelease != 'true' }}
342342
343343 -name :Generate json file used for the new autoupdate
344344run :|
345345 cat > darwin-${{ matrix.arch }}-bundle.json <<EOF
346346 {
347347 "Version": "${GITHUB_REF/refs\/tags\//}",
348- "Sha256": "$(shasum -a 256ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip | awk '{print $1}' | xxd -r -p | base64)"
348+ "Sha256": "$(shasum -a 256ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip | awk '{print $1}' | xxd -r -p | base64)"
349349 }
350350 EOF
351351if :${{ needs.build.outputs.prerelease != 'true' }}
@@ -358,8 +358,8 @@ jobs:
358358 -name :Upload artifact
359359uses :actions/upload-artifact@v4
360360with :
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
363363if-no-files-found :error
364364
365365# This job is responsible for generating the installers (using installbuilder)
@@ -425,14 +425,14 @@ jobs:
425425run :${{ env.INSTALLBUILDER_PATH }} build installer.xml ${{ matrix.installbuilder-name }} --verbose --license /tmp/license.xml --setvars ${{ env.INSTALLER_VARS }} architecture=${{ matrix.arch }}
426426
427427 -name :Generate archive
428- run :tar -czvfArduinoCreateAgent -${GITHUB_REF##*/}-${{ matrix.platform-name }}-${{ matrix.arch }}-installer.tar.gzArduinoCreateAgent -${GITHUB_REF##*/}-${{ matrix.platform-name }}-${{ matrix.arch }}-installer${{matrix.installer-extension}}
428+ run :tar -czvfArduinoCloudAgent -${GITHUB_REF##*/}-${{ matrix.platform-name }}-${{ matrix.arch }}-installer.tar.gzArduinoCloudAgent -${GITHUB_REF##*/}-${{ matrix.platform-name }}-${{ matrix.arch }}-installer${{matrix.installer-extension}}
429429if :matrix.os == 'ubuntu-20.04'
430430
431431 -name :Upload artifacts
432432uses :actions/upload-artifact@v4
433433with :
434- name :ArduinoCreateAgent -${{ matrix.platform-name }}-${{ matrix.arch }}
435- path :ArduinoCreateAgent *
434+ name :ArduinoCloudAgent -${{ matrix.platform-name }}-${{ matrix.arch }}
435+ path :ArduinoCloudAgent *
436436if-no-files-found :error
437437
438438# This job will sign the Windows installer
@@ -449,17 +449,17 @@ jobs:
449449# We are hardcoding the path for signtool because is not present on the windows PATH env var by default.
450450# Keep in mind that this path could change when upgrading to a new runner version
451451SIGNTOOL_PATH :" C:/Program Files (x86)/Windows Kits/10/bin/10.0.19041.0/x86/signtool.exe"
452-
452+
453453strategy :
454454matrix :
455455arch :[amd64, 386]
456-
456+
457457steps :
458458 -name :Download artifact
459459uses :actions/download-artifact@v4
460460with :
461- name :ArduinoCreateAgent -windows-${{ matrix.arch }}
462-
461+ name :ArduinoCloudAgent -windows-${{ matrix.arch }}
462+
463463 -name :Save Win signing certificate to file
464464run :echo "${{ secrets.INSTALLER_CERT_WINDOWS_CER }}" | base64 --decode > ${{ env.INSTALLER_CERT_WINDOWS_CER}}
465465
@@ -468,15 +468,15 @@ jobs:
468468CERT_PASSWORD :${{ secrets.INSTALLER_CERT_WINDOWS_PASSWORD }}
469469CONTAINER_NAME :${{ secrets.INSTALLER_CERT_WINDOWS_CONTAINER }}
470470# https://stackoverflow.com/questions/17927895/automate-extended-validation-ev-code-signing-with-safenet-etoken
471- run :|
472- "${{ env.SIGNTOOL_PATH }}" sign -d "ArduinoCreate 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 "ArduinoCloud 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"
473473
474474 -name :Upload artifacts
475475uses :actions/upload-artifact@v4
476476with :
477477if-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
480480
481481# This job will generate a dmg mac installer, sign/notarize it.
482482generate-sign-dmg :
@@ -496,30 +496,30 @@ jobs:
496496 -name :Download artifact
497497uses :actions/download-artifact@v4
498498with :
499- name :ArduinoCreateAgent .app_${{ matrix.arch }}_notarized
500- path :ArduinoCreateAgent .app
499+ name :ArduinoCloudAgent .app_${{ matrix.arch }}_notarized
500+ path :ArduinoCloudAgent .app
501501
502502 -name :unzip artifact
503- working-directory :ArduinoCreateAgent .app
503+ working-directory :ArduinoCloudAgent .app
504504run :|
505- unzipArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip
506- rmArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip
505+ unzipArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip
506+ rmArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip
507507
508508 -name :Install create-dmg
509509run :brew install create-dmg
510510
511511 -name :Genarate DMG
512512run :|
513513 create-dmg \
514- --volname "ArduinoCreateAgent " \
514+ --volname "ArduinoCloudAgent " \
515515 --background "installer_icons/background.tiff" \
516516 --window-pos 200 120 \
517517 --window-size 500 320 \
518518 --icon-size 80 \
519- --icon "ArduinoCreateAgent .app" 125 150 \
519+ --icon "ArduinoCloudAgent .app" 125 150 \
520520 --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"
523523
524524 -name :Import Code-Signing Certificates
525525run :|
@@ -549,7 +549,7 @@ jobs:
549549# gon does not allow env variables in config file (https://github.com/mitchellh/gon/issues/20)
550550run :|
551551 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"]
553553 bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}-installer"
554554
555555 sign {
@@ -558,7 +558,7 @@ jobs:
558558
559559 # Ask Gon for zip output to force notarization process to take place.
560560 zip {
561- output_path = "ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip"
561+ output_path = "ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip"
562562 }
563563 EOF
564564
@@ -567,13 +567,13 @@ jobs:
567567
568568# tar dmg file to keep executable permission
569569 -name :Tar files to keep permissions
570- run :tar -cvfArduinoCreateAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.tarArduinoCreateAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg
570+ run :tar -cvfArduinoCloudAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.tarArduinoCloudAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg
571571
572572 -name :Upload artifacts
573573uses :actions/upload-artifact@v4
574574with :
575- name :ArduinoCreateAgent -osx-${{ matrix.arch }}
576- path :ArduinoCreateAgent *.tar
575+ name :ArduinoCloudAgent -osx-${{ matrix.arch }}
576+ path :ArduinoCloudAgent *.tar
577577if-no-files-found :error
578578
579579create-release :
@@ -594,11 +594,11 @@ jobs:
594594 -name :prepare artifacts for the release
595595run :|
596596 mkdir release
597- chmod -v +xArduinoCreateAgent -linux-amd64/*.run
598- mv -vArduinoCreateAgent -linux-amd64/* release/
599- catArduinoCreateAgent -osx-amd64/*.tar | tar -xvf - -i -C release/
600- rm -v release/._ArduinoCreateAgent *.dmg
601- mv -vArduinoCreateAgent -windows*-signed/* release/
597+ chmod -v +xArduinoCloudAgent -linux-amd64/*.run
598+ mv -vArduinoCloudAgent -linux-amd64/* release/
599+ catArduinoCloudAgent -osx-amd64/*.tar | tar -xvf - -i -C release/
600+ rm -v release/._ArduinoCloudAgent *.dmg
601+ mv -vArduinoCloudAgent -windows*-signed/* release/
602602
603603 -name :VirusTotal Scan
604604id :virustotal_step