Skip to content

Commit 46fbb34

Browse files
Rename executable and releases to Arduino Cloud Agent (#961)
* Change name in the docs * Change executable's name * Change debug console's name * Update name in test release workflow * Update name in release workflow * Change name used in the installer * Rename .app to Cloud Agent * Check that either the Create Agent or the Cloud Agent exist when autoupdating on macos * Fix typo * Revert changes on the zipped notarized app bundle uploaded to s3 We are keeping it this way because it is used by the autoupdate procedure on macos
1 parent da1fa2e commit 46fbb34

File tree

8 files changed

+387
-359
lines changed

8 files changed

+387
-359
lines changed

.github/workflows/publish-go-tester-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ on:
3030
repository_dispatch:
3131

3232
env:
33-
PROJECT_NAME: arduino-create-agent
33+
PROJECT_NAME: arduino-cloud-agent
3434
GO_VERSION: "1.21"
3535

3636
jobs:

.github/workflows/release.yml

+45-44
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111

1212
env:
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
@@ -183,7 +183,7 @@ jobs:
183183

184184
runs-on: macos-12
185185
env:
186-
EXE_PATH: "skel/ArduinoCreateAgent.app/Contents/MacOS/"
186+
EXE_PATH: "skel/ArduinoCloudAgent.app/Contents/MacOS/"
187187

188188
steps:
189189
- name: Checkout
@@ -205,21 +205,21 @@ 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
213213

214214
- name: Generate Info.plist for MacOS
215215
run: |
216-
cat > skel/ArduinoCreateAgent.app/Contents/Info.plist <<EOF
216+
cat > skel/ArduinoCloudAgent.app/Contents/Info.plist <<EOF
217217
<?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>
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: |
@@ -305,7 +305,7 @@ jobs:
305305
run: |
306306
cat > "${{ env.GON_CONFIG_PATH }}" <<EOF
307307
# See: https://github.com/mitchellh/gon#configuration-file
308-
source = ["ArduinoCreateAgent.app"]
308+
source = ["ArduinoCloudAgent.app"]
309309
bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}"
310310
311311
sign {
@@ -318,8 +318,9 @@ jobs:
318318
- name: Sign app bundle
319319
run: gon -log-level=debug -log-json "${{ env.GON_CONFIG_PATH }}"
320320

321+
# the zip name must not change because it would interfere with the autoupdate process on macos
321322
- name: Zip output app bundle
322-
run: ditto -c -k ArduinoCreateAgent.app/ ArduinoCreateAgent.app_${{ matrix.arch }}_notarized.zip
323+
run: ditto -c -k ArduinoCloudAgent.app/ ArduinoCreateAgent.app_${{ matrix.arch }}_notarized.zip
323324

324325
- name: Remove gon used for code signing
325326
run: |
@@ -377,7 +378,7 @@ jobs:
377378
- name: Upload artifact
378379
uses: actions/upload-artifact@v4
379380
with:
380-
name: ArduinoCreateAgent.app_${{ matrix.arch }}_notarized
381+
name: ArduinoCloudAgent.app_${{ matrix.arch }}_notarized
381382
path: ArduinoCreateAgent.app_${{ matrix.arch }}_notarized.zip
382383
if-no-files-found: error
383384

@@ -389,7 +390,7 @@ jobs:
389390
env:
390391
# vars used by installbuilder
391392
INSTALLBUILDER_PATH: "/opt/installbuilder-23.11.0/bin/builder"
392-
INSTALLER_VARS: "project.outputDirectory=$PWD project.version=${GITHUB_REF##*/} workspace=$PWD realname=Arduino_Create_Agent"
393+
INSTALLER_VARS: "project.outputDirectory=$PWD project.version=${GITHUB_REF##*/} workspace=$PWD realname=Arduino_Cloud_Agent"
393394

394395
strategy:
395396
fail-fast: false # if one os is failing continue nonetheless
@@ -434,8 +435,8 @@ jobs:
434435
run: chmod -v +x artifacts/${{ matrix.platform-name }}/${{ env.PROJECT_NAME }}*
435436
if: matrix.os == 'ubuntu-20.04'
436437

437-
- name: Rename executable to Arduino_Create_Agent
438-
run: mv -v artifacts/${{ matrix.platform-name }}/${{ env.PROJECT_NAME }}${{ matrix.extension }} artifacts/${{ matrix.platform-name }}/Arduino_Create_Agent${{ matrix.extension }}
438+
- name: Rename executable to Arduino_Cloud_Agent
439+
run: mv -v artifacts/${{ matrix.platform-name }}/${{ env.PROJECT_NAME }}${{ matrix.extension }} artifacts/${{ matrix.platform-name }}/Arduino_Cloud_Agent${{ matrix.extension }}
439440

440441
- name: Save InstallBuilder license to file
441442
run: echo "${{ secrets.INSTALLER_LICENSE }}" > /tmp/license.xml
@@ -444,14 +445,14 @@ jobs:
444445
run: ${{ env.INSTALLBUILDER_PATH }} build installer.xml ${{ matrix.installbuilder-name }} --verbose --license /tmp/license.xml --setvars ${{ env.INSTALLER_VARS }} architecture=${{ matrix.arch }}
445446

446447
- 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}}
448+
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}}
448449
if: matrix.os == 'ubuntu-20.04'
449450

450451
- name: Upload artifacts
451452
uses: actions/upload-artifact@v4
452453
with:
453-
name: ArduinoCreateAgent-${{ matrix.platform-name }}-${{ matrix.arch }}
454-
path: ArduinoCreateAgent*
454+
name: ArduinoCloudAgent-${{ matrix.platform-name }}-${{ matrix.arch }}
455+
path: ArduinoCloudAgent*
455456
if-no-files-found: error
456457

457458
# This job will sign the Windows installer
@@ -477,7 +478,7 @@ jobs:
477478
- name: Download artifact
478479
uses: actions/download-artifact@v4
479480
with:
480-
name: ArduinoCreateAgent-windows-${{ matrix.arch }}
481+
name: ArduinoCloudAgent-windows-${{ matrix.arch }}
481482

482483
- name: Save Win signing certificate to file
483484
run: echo "${{ secrets.INSTALLER_CERT_WINDOWS_CER }}" | base64 --decode > ${{ env.INSTALLER_CERT_WINDOWS_CER}}
@@ -488,18 +489,18 @@ jobs:
488489
CONTAINER_NAME: ${{ secrets.INSTALLER_CERT_WINDOWS_CONTAINER }}
489490
# https://stackoverflow.com/questions/17927895/automate-extended-validation-ev-code-signing-with-safenet-etoken
490491
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"
492+
"${{ 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"
492493
493494
- name: Upload artifacts
494495
uses: actions/upload-artifact@v4
495496
with:
496497
if-no-files-found: error
497-
name: ArduinoCreateAgent-windows-${{ matrix.arch }}-signed
498-
path: ArduinoCreateAgent-*-windows-${{ matrix.arch }}-installer.exe
498+
name: ArduinoCloudAgent-windows-${{ matrix.arch }}-signed
499+
path: ArduinoCloudAgent-*-windows-${{ matrix.arch }}-installer.exe
499500

500501
# This step is needed because the self hosted runner does not delete files automatically
501502
- name: Clean up EXE
502-
run: rm ArduinoCreateAgent-*-windows-${{ matrix.arch }}-installer.exe
503+
run: rm ArduinoCloudAgent-*-windows-${{ matrix.arch }}-installer.exe
503504

504505
# This job will generate a dmg mac installer, sign/notarize it.
505506
generate-sign-dmg:
@@ -519,30 +520,30 @@ jobs:
519520
- name: Download artifact
520521
uses: actions/download-artifact@v4
521522
with:
522-
name: ArduinoCreateAgent.app_${{ matrix.arch }}_notarized
523-
path: ArduinoCreateAgent.app
523+
name: ArduinoCloudAgent.app_${{ matrix.arch }}_notarized
524+
path: ArduinoCloudAgent.app
524525

525526
- name: unzip artifact
526-
working-directory: ArduinoCreateAgent.app
527+
working-directory: ArduinoCloudAgent.app
527528
run: |
528529
unzip ArduinoCreateAgent.app_${{ matrix.arch }}_notarized.zip
529530
rm ArduinoCreateAgent.app_${{ matrix.arch }}_notarized.zip
530531
531532
- name: Install create-dmg
532533
run: brew install create-dmg
533534

534-
- name: Genarate DMG
535+
- name: Generate DMG
535536
run: |
536537
create-dmg \
537-
--volname "ArduinoCreateAgent" \
538+
--volname "ArduinoCloudAgent" \
538539
--background "installer_icons/background.tiff" \
539540
--window-pos 200 120 \
540541
--window-size 500 320 \
541542
--icon-size 80 \
542-
--icon "ArduinoCreateAgent.app" 125 150 \
543+
--icon "ArduinoCloudAgent.app" 125 150 \
543544
--app-drop-link 375 150 \
544-
"ArduinoCreateAgent-${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg" \
545-
"ArduinoCreateAgent.app"
545+
"ArduinoCloudAgent-${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg" \
546+
"ArduinoCloudAgent.app"
546547
547548
- name: Import Code-Signing Certificates
548549
run: |
@@ -572,7 +573,7 @@ jobs:
572573
# gon does not allow env variables in config file (https://github.com/mitchellh/gon/issues/20)
573574
run: |
574575
cat > gon.config_installer.hcl <<EOF
575-
source = ["ArduinoCreateAgent-${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg"]
576+
source = ["ArduinoCloudAgent-${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg"]
576577
bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}-installer"
577578
578579
sign {
@@ -581,7 +582,7 @@ jobs:
581582
582583
# Ask Gon for zip output to force notarization process to take place.
583584
zip {
584-
output_path = "ArduinoCreateAgent.app_${{ matrix.arch }}_notarized.zip"
585+
output_path = "ArduinoCloudAgent.app_${{ matrix.arch }}_notarized.zip"
585586
}
586587
EOF
587588
@@ -590,13 +591,13 @@ jobs:
590591

591592
# tar dmg file to keep executable permission
592593
- 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
594+
run: tar -cvf ArduinoCloudAgent-${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.tar ArduinoCloudAgent-${GITHUB_REF##*/}-osx-${{ matrix.arch }}-installer.dmg
594595

595596
- name: Upload artifacts
596597
uses: actions/upload-artifact@v4
597598
with:
598-
name: ArduinoCreateAgent-osx-${{ matrix.arch }}
599-
path: ArduinoCreateAgent*.tar
599+
name: ArduinoCloudAgent-osx-${{ matrix.arch }}
600+
path: ArduinoCloudAgent*.tar
600601
if-no-files-found: error
601602

602603
create-release:
@@ -617,11 +618,11 @@ jobs:
617618
- name: prepare artifacts for the release
618619
run: |
619620
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/
621+
chmod -v +x ArduinoCloudAgent-linux-amd64/*.run
622+
mv -v ArduinoCloudAgent-linux-amd64/* release/
623+
cat ArduinoCloudAgent-osx-amd64/*.tar | tar -xvf - -i -C release/
624+
rm -v release/._ArduinoCloudAgent*.dmg
625+
mv -v ArduinoCloudAgent-windows*-signed/* release/
625626
626627
- name: VirusTotal Scan
627628
id: virustotal_step

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
bufferflow_tinyg_old.md
33

4-
/arduino-create-agent*
5-
!/arduino-create-agent*/
4+
/arduino-cloud-agent*
5+
!/arduino-cloud-agent*/
66
rsrc.syso
77

88
snapshot/*

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# arduino-create-agent
1+
# arduino-cloud-agent
22

33
[![License: AGPL v3.0](https://img.shields.io/badge/License-AGPL%20v3.0-blue)](https://www.gnu.org/licenses/agpl-3.0.html)
44
[![Test Go status](https://github.com/arduino/arduino-create-agent/actions/workflows/test-go-task.yml/badge.svg)](https://github.com/arduino/arduino-create-agent/actions/workflows/test-go-task.yml)
@@ -8,7 +8,7 @@
88
[![Check Go Dependencies status](https://github.com/arduino/arduino-create-agent/actions/workflows/check-go-dependencies-task.yml/badge.svg)](https://github.com/arduino/arduino-create-agent/actions/workflows/check-go-dependencies-task.yml)
99
[![Check Go status](https://github.com/arduino/arduino-create-agent/actions/workflows/check-go-task.yml/badge.svg)](https://github.com/arduino/arduino-create-agent/actions/workflows/check-go-task.yml)
1010

11-
The Arduino Create Agent is a single binary that will sit on the traybar and work in the background. It allows you to use the [Arduino Create applications](https://create.arduino.cc) to seamlessly upload code to any USB connected Arduino board (or Yún in LAN) directly from the browser.
11+
The Arduino Cloud Agent is a single binary that will sit on the traybar and work in the background. It allows you to use the [Arduino Create applications](https://create.arduino.cc) to seamlessly upload code to any USB connected Arduino board (or Yún in LAN) directly from the browser.
1212

1313
## Architecture
1414

@@ -18,7 +18,7 @@ The Arduino Create Agent is a single binary that will sit on the traybar and wor
1818
| Browser |
1919
| | Web socket +----------------------+ flashes +---------------+
2020
| +---------------------------+ |<-------------->| +------------>| |
21-
| | | | | Arduino Create Agent | | Arduino Board |
21+
| | | | | Arduino Cloud Agent | | Arduino Board |
2222
| | Arduino Create Web Editor | +--------------->| |<------------+ |
2323
| | | | REST API +----------------------+ serial +---------------+
2424
| +---------------------------+ |
@@ -74,7 +74,7 @@ By signing off your commits, you agree to the following agreement, also known as
7474

7575
## Authors and acknowledgment
7676

77-
arduino-create-agent is a fork of @[johnlauer](https://github.com/johnlauer)'s [serial-port-json-server](https://github.com/johnlauer/serial-port-json-server) (which we really want to thank for his kindness and great work)
77+
arduino-cloud-agent is a fork of @[johnlauer](https://github.com/johnlauer)'s [serial-port-json-server](https://github.com/johnlauer/serial-port-json-server) (which we really want to thank for his kindness and great work)
7878

7979
The history has been rewritten to keep the repo small (thus removing all binaries committed in the past)
8080

Taskfile.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ tasks:
3737
cmds:
3838
- task: go:build
3939
vars:
40-
PROJECT_NAME: arduino-create-agent_cli
40+
PROJECT_NAME: arduino-cloud-agent_cli
4141
ADDITIONAL_FLAGS: -tags cli
4242

4343
go:build-win:
@@ -46,7 +46,7 @@ tasks:
4646
- rsrc -arch {{.GOARCH}} -manifest manifest.xml # GOARCH shoud be either amd64 or 386
4747
- task: go:build
4848
vars:
49-
PROJECT_NAME: arduino-create-agent.exe
49+
PROJECT_NAME: arduino-cloud-agent.exe
5050
WIN_FLAGS: -H=windowsgui
5151
- rm *.syso # rm file to avoid compilation problems on other platforms
5252
vars:
@@ -58,7 +58,7 @@ tasks:
5858
cmds:
5959
- task: go:build
6060
vars:
61-
PROJECT_NAME: arduino-create-agent_cli.exe
61+
PROJECT_NAME: arduino-cloud-agent_cli.exe
6262
ADDITIONAL_FLAGS: -tags cli
6363

6464
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/test-go-task/Taskfile.yml
@@ -140,7 +140,7 @@ tasks:
140140

141141
vars:
142142
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/release-go-task/Taskfile.yml
143-
PROJECT_NAME: arduino-create-agent
143+
PROJECT_NAME: arduino-cloud-agent
144144
# build vars
145145
COMMIT:
146146
sh: echo "$(git log --no-show-signature -n 1 --format=%h)"

0 commit comments

Comments
 (0)