@@ -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
1515 TARGET : " /CreateAgent/Stable/"
1616 VERSION_TARGET : " arduino-create-static/agent-metadata/"
1717 AWS_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
133133 run : go-selfupdate -platform windows-${{ matrix.arch }} ${{ env.PROJECT_NAME }}${{ matrix.ext }} ${TAG_VERSION}
134134 if : matrix.arch == '386' && matrix.os == 'windows-2019' && steps.prerelease.outputs.IS_PRE != 'true'
135-
135+
136136 - name : configure aws credentials
137137 uses : aws-actions/configure-aws-credentials@v4
138138 with :
@@ -164,7 +164,7 @@ jobs:
164164
165165 runs-on : macos-12
166166 env :
167- EXE_PATH : " skel/ArduinoCreateAgent .app/Contents/MacOS/"
167+ EXE_PATH : " skel/ArduinoCloudAgent .app/Contents/MacOS/"
168168
169169 steps :
170170 - name : Checkout
@@ -194,13 +194,13 @@ jobs:
194194
195195 - name : Generate Info.plist for MacOS
196196 run : |
197- cat > skel/ArduinoCreateAgent .app/Contents/Info.plist <<EOF
197+ cat > skel/ArduinoCloadAgent .app/Contents/Info.plist <<EOF
198198 <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>CFBundlePackageType</key><string>APPL</string><key>CFBundleInfoDictionaryVersion</key><string>6.0</string>
199199
200200 <key>CFBundleIconFile</key> <string>AppIcon.icns</string>
201201
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>
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 -cvf ArduinoCreateAgent .app_${{ matrix.arch }}.tar -C skel/ .
218+ run : tar -cvf ArduinoCloudAgent .app_${{ matrix.arch }}.tar -C skel/ .
219219
220220 - name : Upload artifacts
221221 uses : actions/upload-artifact@v4
222222 with :
223223 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
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.
228228 notarize-macos :
@@ -243,10 +243,10 @@ jobs:
243243 - name : Download artifact
244244 uses : actions/download-artifact@v4
245245 with :
246- name : ArduinoCreateAgent .app_${{ matrix.arch }}
246+ name : ArduinoCloudAgent .app_${{ matrix.arch }}
247247
248248 - name : un-Tar bundle
249- run : tar -xvf ArduinoCreateAgent .app_${{ matrix.arch }}.tar
249+ run : tar -xvf ArduinoCloudAgent .app_${{ matrix.arch }}.tar
250250
251251 - name : Import Code-Signing Certificates
252252 run : |
@@ -286,7 +286,7 @@ jobs:
286286 run : |
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:
300300 run : gon -log-level=debug -log-json "${{ env.GON_CONFIG_PATH }}"
301301
302302 - 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
304304
305305 - name : Remove gon used for code signing
306306 run : |
@@ -311,19 +311,19 @@ jobs:
311311 run : |
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
316316 run : |
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
328328 run : |
329329 gon -log-level=debug -log-json "${{ env.GON_CONFIG_PATH }}"
@@ -337,15 +337,15 @@ jobs:
337337 if : ${{ needs.build.outputs.prerelease != 'true' }}
338338
339339 - 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
341341 if : ${{ needs.build.outputs.prerelease != 'true' }}
342342
343343 - name : Generate json file used for the new autoupdate
344344 run : |
345345 cat > darwin-${{ matrix.arch }}-bundle.json <<EOF
346346 {
347347 "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)"
349349 }
350350 EOF
351351 if : ${{ needs.build.outputs.prerelease != 'true' }}
@@ -358,8 +358,8 @@ jobs:
358358 - name : Upload artifact
359359 uses : actions/upload-artifact@v4
360360 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
363363 if-no-files-found : error
364364
365365 # This job is responsible for generating the installers (using installbuilder)
@@ -425,14 +425,14 @@ jobs:
425425 run : ${{ 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 -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}}
429429 if : matrix.os == 'ubuntu-20.04'
430430
431431 - name : Upload artifacts
432432 uses : actions/upload-artifact@v4
433433 with :
434- name : ArduinoCreateAgent -${{ matrix.platform-name }}-${{ matrix.arch }}
435- path : ArduinoCreateAgent *
434+ name : ArduinoCloudAgent -${{ matrix.platform-name }}-${{ matrix.arch }}
435+ path : ArduinoCloudAgent *
436436 if-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
451451 SIGNTOOL_PATH : " C:/Program Files (x86)/Windows Kits/10/bin/10.0.19041.0/x86/signtool.exe"
452-
452+
453453 strategy :
454454 matrix :
455455 arch : [amd64, 386]
456-
456+
457457 steps :
458458 - name : Download artifact
459459 uses : actions/download-artifact@v4
460460 with :
461- name : ArduinoCreateAgent -windows-${{ matrix.arch }}
462-
461+ name : ArduinoCloudAgent -windows-${{ matrix.arch }}
462+
463463 - name : Save Win signing certificate to file
464464 run : echo "${{ secrets.INSTALLER_CERT_WINDOWS_CER }}" | base64 --decode > ${{ env.INSTALLER_CERT_WINDOWS_CER}}
465465
@@ -468,15 +468,15 @@ jobs:
468468 CERT_PASSWORD : ${{ secrets.INSTALLER_CERT_WINDOWS_PASSWORD }}
469469 CONTAINER_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 "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"
473473
474474 - name : Upload artifacts
475475 uses : actions/upload-artifact@v4
476476 with :
477477 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
480480
481481 # This job will generate a dmg mac installer, sign/notarize it.
482482 generate-sign-dmg :
@@ -496,30 +496,30 @@ jobs:
496496 - name : Download artifact
497497 uses : actions/download-artifact@v4
498498 with :
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
504504 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
507507
508508 - name : Install create-dmg
509509 run : brew install create-dmg
510510
511511 - name : Genarate DMG
512512 run : |
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
525525 run : |
@@ -549,7 +549,7 @@ jobs:
549549 # gon does not allow env variables in config file (https://github.com/mitchellh/gon/issues/20)
550550 run : |
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 -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
571571
572572 - name : Upload artifacts
573573 uses : actions/upload-artifact@v4
574574 with :
575- name : ArduinoCreateAgent -osx-${{ matrix.arch }}
576- path : ArduinoCreateAgent *.tar
575+ name : ArduinoCloudAgent -osx-${{ matrix.arch }}
576+ path : ArduinoCloudAgent *.tar
577577 if-no-files-found : error
578578
579579 create-release :
@@ -594,11 +594,11 @@ jobs:
594594 - name : prepare artifacts for the release
595595 run : |
596596 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/
602602
603603 - name : VirusTotal Scan
604604 id : virustotal_step
0 commit comments