@@ -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
@@ -205,8 +205,8 @@ jobs:
205205 - name : Make executable
206206 run : chmod -v +x ${{ env.EXE_PATH }}${{ env.PROJECT_NAME }}
207207
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
210210
211211 - name : get year
212212 run : echo "YEAR=$(date "+%Y")" >> $GITHUB_ENV
@@ -218,8 +218,8 @@ jobs:
218218
219219 <key>CFBundleIconFile</key> <string>AppIcon.icns</string>
220220
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>
223223 <key>CFBundleIdentifier</key> <string>create.arduino.cc</string>
224224
225225 <key>CFBundleVersion</key> <string>${GITHUB_REF##*/}</string>
@@ -234,14 +234,14 @@ jobs:
234234 EOF
235235
236236 - 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/ .
238238
239239 - name : Upload artifacts
240240 uses : actions/upload-artifact@v4
241241 with :
242242 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
245245
246246 # 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.
247247 notarize-macos :
@@ -262,10 +262,10 @@ jobs:
262262 - name : Download artifact
263263 uses : actions/download-artifact@v4
264264 with :
265- name : ArduinoCreateAgent .app_${{ matrix.arch }}
265+ name : ArduinoCloudAgent .app_${{ matrix.arch }}
266266
267267 - name : un-Tar bundle
268- run : tar -xvf ArduinoCreateAgent .app_${{ matrix.arch }}.tar
268+ run : tar -xvf ArduinoCloudAgent .app_${{ matrix.arch }}.tar
269269
270270 - name : Import Code-Signing Certificates
271271 run : |
@@ -319,7 +319,7 @@ jobs:
319319 run : gon -log-level=debug -log-json "${{ env.GON_CONFIG_PATH }}"
320320
321321 - 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
323323
324324 - name : Remove gon used for code signing
325325 run : |
@@ -337,7 +337,7 @@ jobs:
337337 # See: https://github.com/Bearer/gon#configuration-file
338338
339339 notarize {
340- path = "ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip"
340+ path = "ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip"
341341 bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}"
342342 }
343343
@@ -356,15 +356,15 @@ jobs:
356356 if : ${{ needs.build.outputs.prerelease != 'true' }}
357357
358358 - 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
360360 if : ${{ needs.build.outputs.prerelease != 'true' }}
361361
362362 - name : Generate json file used for the new autoupdate
363363 run : |
364364 cat > darwin-${{ matrix.arch }}-bundle.json <<EOF
365365 {
366366 "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)"
368368 }
369369 EOF
370370 if : ${{ needs.build.outputs.prerelease != 'true' }}
@@ -377,8 +377,8 @@ jobs:
377377 - name : Upload artifact
378378 uses : actions/upload-artifact@v4
379379 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
382382 if-no-files-found : error
383383
384384 # This job is responsible for generating the installers (using installbuilder)
@@ -443,15 +443,18 @@ jobs:
443443 - name : Launch Bitrock installbuilder
444444 run : ${{ env.INSTALLBUILDER_PATH }} build installer.xml ${{ matrix.installbuilder-name }} --verbose --license /tmp/license.xml --setvars ${{ env.INSTALLER_VARS }} architecture=${{ matrix.arch }}
445445
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+
446449 - 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}}
448451 if : matrix.os == 'ubuntu-20.04'
449452
450453 - name : Upload artifacts
451454 uses : actions/upload-artifact@v4
452455 with :
453- name : ArduinoCreateAgent -${{ matrix.platform-name }}-${{ matrix.arch }}
454- path : ArduinoCreateAgent *
456+ name : ArduinoCloudAgent -${{ matrix.platform-name }}-${{ matrix.arch }}
457+ path : ArduinoCloudAgent *
455458 if-no-files-found : error
456459
457460 # This job will sign the Windows installer
@@ -477,7 +480,7 @@ jobs:
477480 - name : Download artifact
478481 uses : actions/download-artifact@v4
479482 with :
480- name : ArduinoCreateAgent -windows-${{ matrix.arch }}
483+ name : ArduinoCloudAgent -windows-${{ matrix.arch }}
481484
482485 - name : Save Win signing certificate to file
483486 run : echo "${{ secrets.INSTALLER_CERT_WINDOWS_CER }}" | base64 --decode > ${{ env.INSTALLER_CERT_WINDOWS_CER}}
@@ -488,18 +491,18 @@ jobs:
488491 CONTAINER_NAME : ${{ secrets.INSTALLER_CERT_WINDOWS_CONTAINER }}
489492 # https://stackoverflow.com/questions/17927895/automate-extended-validation-ev-code-signing-with-safenet-etoken
490493 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"
492495
493496 - name : Upload artifacts
494497 uses : actions/upload-artifact@v4
495498 with :
496499 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
499502
500503 # This step is needed because the self hosted runner does not delete files automatically
501504 - name : Clean up EXE
502- run : rm ArduinoCreateAgent -*-windows-${{ matrix.arch }}-installer.exe
505+ run : rm ArduinoCloudAgent -*-windows-${{ matrix.arch }}-installer.exe
503506
504507 # This job will generate a dmg mac installer, sign/notarize it.
505508 generate-sign-dmg :
@@ -519,30 +522,30 @@ jobs:
519522 - name : Download artifact
520523 uses : actions/download-artifact@v4
521524 with :
522- name : ArduinoCreateAgent .app_${{ matrix.arch }}_notarized
523- path : ArduinoCreateAgent .app
525+ name : ArduinoCloudAgent .app_${{ matrix.arch }}_notarized
526+ path : ArduinoCloudAgent .app
524527
525528 - name : unzip artifact
526- working-directory : ArduinoCreateAgent .app
529+ working-directory : ArduinoCloudAgent .app
527530 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
530533
531534 - name : Install create-dmg
532535 run : brew install create-dmg
533536
534537 - name : Genarate DMG
535538 run : |
536539 create-dmg \
537- --volname "ArduinoCreateAgent " \
540+ --volname "ArduinoCloudAgent " \
538541 --background "installer_icons/background.tiff" \
539542 --window-pos 200 120 \
540543 --window-size 500 320 \
541544 --icon-size 80 \
542- --icon "ArduinoCreateAgent .app" 125 150 \
545+ --icon "ArduinoCloudAgent .app" 125 150 \
543546 --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"
546549
547550 - name : Import Code-Signing Certificates
548551 run : |
@@ -572,7 +575,7 @@ jobs:
572575 # gon does not allow env variables in config file (https://github.com/mitchellh/gon/issues/20)
573576 run : |
574577 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"]
576579 bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}-installer"
577580
578581 sign {
@@ -581,7 +584,7 @@ jobs:
581584
582585 # Ask Gon for zip output to force notarization process to take place.
583586 zip {
584- output_path = "ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip"
587+ output_path = "ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip"
585588 }
586589 EOF
587590
@@ -590,13 +593,13 @@ jobs:
590593
591594 # tar dmg file to keep executable permission
592595 - 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
594597
595598 - name : Upload artifacts
596599 uses : actions/upload-artifact@v4
597600 with :
598- name : ArduinoCreateAgent -osx-${{ matrix.arch }}
599- path : ArduinoCreateAgent *.tar
601+ name : ArduinoCloudAgent -osx-${{ matrix.arch }}
602+ path : ArduinoCloudAgent *.tar
600603 if-no-files-found : error
601604
602605 create-release :
@@ -617,11 +620,11 @@ jobs:
617620 - name : prepare artifacts for the release
618621 run : |
619622 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/
625628
626629 - name : VirusTotal Scan
627630 id : virustotal_step
0 commit comments