@@ -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 :
@@ -186,8 +186,8 @@ jobs:
186186 - name : Make executable
187187 run : chmod -v +x ${{ env.EXE_PATH }}${{ env.PROJECT_NAME }}
188188
189- - name : Rename executable to Arduino_Create_Agent
190- run : mv -v ${{ env.EXE_PATH }}${{ env.PROJECT_NAME }} ${{ env.EXE_PATH }}Arduino_Create_Agent
189+ - name : Rename executable to Arduino_Cloud_Agent
190+ run : mv -v ${{ env.EXE_PATH }}${{ env.PROJECT_NAME }} ${{ env.EXE_PATH }}Arduino_Cloud_Agent
191191
192192 - name : get year
193193 run : echo "YEAR=$(date "+%Y")" >> $GITHUB_ENV
@@ -199,8 +199,8 @@ jobs:
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)
@@ -424,15 +424,18 @@ jobs:
424424 - name : Launch Bitrock installbuilder
425425 run : ${{ env.INSTALLBUILDER_PATH }} build installer.xml ${{ matrix.installbuilder-name }} --verbose --license /tmp/license.xml --setvars ${{ env.INSTALLER_VARS }} architecture=${{ matrix.arch }}
426426
427+ - name : Rename installer to ArduinoCloudAgent
428+ 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}}
429+
427430 - 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}}
431+ 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}}
429432 if : matrix.os == 'ubuntu-20.04'
430433
431434 - name : Upload artifacts
432435 uses : actions/upload-artifact@v4
433436 with :
434- name : ArduinoCreateAgent -${{ matrix.platform-name }}-${{ matrix.arch }}
435- path : ArduinoCreateAgent *
437+ name : ArduinoCloudAgent -${{ matrix.platform-name }}-${{ matrix.arch }}
438+ path : ArduinoCloudAgent *
436439 if-no-files-found : error
437440
438441 # This job will sign the Windows installer
@@ -449,17 +452,17 @@ jobs:
449452 # We are hardcoding the path for signtool because is not present on the windows PATH env var by default.
450453 # Keep in mind that this path could change when upgrading to a new runner version
451454 SIGNTOOL_PATH : " C:/Program Files (x86)/Windows Kits/10/bin/10.0.19041.0/x86/signtool.exe"
452-
455+
453456 strategy :
454457 matrix :
455458 arch : [amd64, 386]
456-
459+
457460 steps :
458461 - name : Download artifact
459462 uses : actions/download-artifact@v4
460463 with :
461- name : ArduinoCreateAgent -windows-${{ matrix.arch }}
462-
464+ name : ArduinoCloudAgent -windows-${{ matrix.arch }}
465+
463466 - name : Save Win signing certificate to file
464467 run : echo "${{ secrets.INSTALLER_CERT_WINDOWS_CER }}" | base64 --decode > ${{ env.INSTALLER_CERT_WINDOWS_CER}}
465468
@@ -468,15 +471,15 @@ jobs:
468471 CERT_PASSWORD : ${{ secrets.INSTALLER_CERT_WINDOWS_PASSWORD }}
469472 CONTAINER_NAME : ${{ secrets.INSTALLER_CERT_WINDOWS_CONTAINER }}
470473 # 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"
474+ run : |
475+ "${{ 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"
473476
474477 - name : Upload artifacts
475478 uses : actions/upload-artifact@v4
476479 with :
477480 if-no-files-found : error
478- name : ArduinoCreateAgent -windows-${{ matrix.arch }}-signed
479- path : ArduinoCreateAgent -*-windows-${{ matrix.arch }}-installer.exe
481+ name : ArduinoCloudAgent -windows-${{ matrix.arch }}-signed
482+ path : ArduinoCloudAgent -*-windows-${{ matrix.arch }}-installer.exe
480483
481484 # This job will generate a dmg mac installer, sign/notarize it.
482485 generate-sign-dmg :
@@ -496,30 +499,30 @@ jobs:
496499 - name : Download artifact
497500 uses : actions/download-artifact@v4
498501 with :
499- name : ArduinoCreateAgent .app_${{ matrix.arch }}_notarized
500- path : ArduinoCreateAgent .app
502+ name : ArduinoCloudAgent .app_${{ matrix.arch }}_notarized
503+ path : ArduinoCloudAgent .app
501504
502505 - name : unzip artifact
503- working-directory : ArduinoCreateAgent .app
506+ working-directory : ArduinoCloudAgent .app
504507 run : |
505- unzip ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip
506- rm ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip
508+ unzip ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip
509+ rm ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip
507510
508511 - name : Install create-dmg
509512 run : brew install create-dmg
510513
511514 - name : Genarate DMG
512515 run : |
513516 create-dmg \
514- --volname "ArduinoCreateAgent " \
517+ --volname "ArduinoCloudAgent " \
515518 --background "installer_icons/background.tiff" \
516519 --window-pos 200 120 \
517520 --window-size 500 320 \
518521 --icon-size 80 \
519- --icon "ArduinoCreateAgent .app" 125 150 \
522+ --icon "ArduinoCloudAgent .app" 125 150 \
520523 --app-drop-link 375 150 \
521- "ArduinoCreateAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg" \
522- "ArduinoCreateAgent .app"
524+ "ArduinoCloudAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg" \
525+ "ArduinoCloudAgent .app"
523526
524527 - name : Import Code-Signing Certificates
525528 run : |
@@ -549,7 +552,7 @@ jobs:
549552 # gon does not allow env variables in config file (https://github.com/mitchellh/gon/issues/20)
550553 run : |
551554 cat > gon.config_installer.hcl <<EOF
552- source = ["ArduinoCreateAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg"]
555+ source = ["ArduinoCloudAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg"]
553556 bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}-installer"
554557
555558 sign {
@@ -558,7 +561,7 @@ jobs:
558561
559562 # Ask Gon for zip output to force notarization process to take place.
560563 zip {
561- output_path = "ArduinoCreateAgent .app_${{ matrix.arch }}_notarized.zip"
564+ output_path = "ArduinoCloudAgent .app_${{ matrix.arch }}_notarized.zip"
562565 }
563566 EOF
564567
@@ -567,13 +570,13 @@ jobs:
567570
568571 # tar dmg file to keep executable permission
569572 - 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
573+ run : tar -cvf ArduinoCloudAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.tar ArduinoCloudAgent -${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg
571574
572575 - name : Upload artifacts
573576 uses : actions/upload-artifact@v4
574577 with :
575- name : ArduinoCreateAgent -osx-${{ matrix.arch }}
576- path : ArduinoCreateAgent *.tar
578+ name : ArduinoCloudAgent -osx-${{ matrix.arch }}
579+ path : ArduinoCloudAgent *.tar
577580 if-no-files-found : error
578581
579582 create-release :
@@ -594,11 +597,11 @@ jobs:
594597 - name : prepare artifacts for the release
595598 run : |
596599 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/
600+ chmod -v +x ArduinoCloudAgent -linux-amd64/*.run
601+ mv -v ArduinoCloudAgent -linux-amd64/* release/
602+ cat ArduinoCloudAgent -osx-amd64/*.tar | tar -xvf - -i -C release/
603+ rm -v release/._ArduinoCloudAgent *.dmg
604+ mv -v ArduinoCloudAgent -windows*-signed/* release/
602605
603606 - name : VirusTotal Scan
604607 id : virustotal_step
0 commit comments