A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/arduino/arduino-create-agent/commit/46fbb343ee66a5a38bd716e59a1a96c43454b6a2 below:

Rename executable and releases to `Arduino Cloud Agent` (#961) · arduino/arduino-create-agent@46fbb34 · GitHub

@@ -11,7 +11,7 @@ permissions:

11 11 12 12

env:

13 13

# As defined by the Taskfile's PROJECT_NAME variable

14 -

PROJECT_NAME: arduino-create-agent

14 +

PROJECT_NAME: arduino-cloud-agent

15 15

TARGET: "/CreateAgent/Stable/"

16 16

VERSION_TARGET: "arduino-create-static/agent-metadata/"

17 17

AWS_REGION: "us-east-1" # or https://github.com/aws/aws-cli/issues/5623

@@ -183,7 +183,7 @@ jobs:

183 183 184 184

runs-on: macos-12

185 185

env:

186 -

EXE_PATH: "skel/ArduinoCreateAgent.app/Contents/MacOS/"

186 +

EXE_PATH: "skel/ArduinoCloudAgent.app/Contents/MacOS/"

187 187 188 188

steps:

189 189

- name: Checkout

@@ -205,21 +205,21 @@ jobs:

205 205

- name: Make executable

206 206

run: chmod -v +x ${{ env.EXE_PATH }}${{ env.PROJECT_NAME }}

207 207 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

210 210 211 211

- name: get year

212 212

run: echo "YEAR=$(date "+%Y")" >> $GITHUB_ENV

213 213 214 214

- name: Generate Info.plist for MacOS

215 215

run: |

216 -

cat > skel/ArduinoCreateAgent.app/Contents/Info.plist <<EOF

216 +

cat > skel/ArduinoCloudAgent.app/Contents/Info.plist <<EOF

217 217

<?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>

218 218 219 219

<key>CFBundleIconFile</key> <string>AppIcon.icns</string>

220 220 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>

223 223

<key>CFBundleIdentifier</key> <string>create.arduino.cc</string>

224 224 225 225

<key>CFBundleVersion</key> <string>${GITHUB_REF##*/}</string>

@@ -234,14 +234,14 @@ jobs:

234 234

EOF

235 235 236 236

- 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/ .

238 238 239 239

- name: Upload artifacts

240 240

uses: actions/upload-artifact@v4

241 241

with:

242 242

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

245 245 246 246

# 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.

247 247

notarize-macos:

@@ -262,10 +262,10 @@ jobs:

262 262

- name: Download artifact

263 263

uses: actions/download-artifact@v4

264 264

with:

265 -

name: ArduinoCreateAgent.app_${{ matrix.arch }}

265 +

name: ArduinoCloudAgent.app_${{ matrix.arch }}

266 266 267 267

- name: un-Tar bundle

268 -

run: tar -xvf ArduinoCreateAgent.app_${{ matrix.arch }}.tar

268 +

run: tar -xvf ArduinoCloudAgent.app_${{ matrix.arch }}.tar

269 269 270 270

- name: Import Code-Signing Certificates

271 271

run: |

@@ -305,7 +305,7 @@ jobs:

305 305

run: |

306 306

cat > "${{ env.GON_CONFIG_PATH }}" <<EOF

307 307

# See: https://github.com/mitchellh/gon#configuration-file

308 -

source = ["ArduinoCreateAgent.app"]

308 +

source = ["ArduinoCloudAgent.app"]

309 309

bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}"

310 310 311 311

sign {

@@ -318,8 +318,9 @@ jobs:

318 318

- name: Sign app bundle

319 319

run: gon -log-level=debug -log-json "${{ env.GON_CONFIG_PATH }}"

320 320 321 +

# the zip name must not change because it would interfere with the autoupdate process on macos

321 322

- 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

323 324 324 325

- name: Remove gon used for code signing

325 326

run: |

@@ -377,7 +378,7 @@ jobs:

377 378

- name: Upload artifact

378 379

uses: actions/upload-artifact@v4

379 380

with:

380 -

name: ArduinoCreateAgent.app_${{ matrix.arch }}_notarized

381 +

name: ArduinoCloudAgent.app_${{ matrix.arch }}_notarized

381 382

path: ArduinoCreateAgent.app_${{ matrix.arch }}_notarized.zip

382 383

if-no-files-found: error

383 384

@@ -389,7 +390,7 @@ jobs:

389 390

env:

390 391

# vars used by installbuilder

391 392

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"

393 394 394 395

strategy:

395 396

fail-fast: false # if one os is failing continue nonetheless

@@ -434,8 +435,8 @@ jobs:

434 435

run: chmod -v +x artifacts/${{ matrix.platform-name }}/${{ env.PROJECT_NAME }}*

435 436

if: matrix.os == 'ubuntu-20.04'

436 437 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 }}

439 440 440 441

- name: Save InstallBuilder license to file

441 442

run: echo "${{ secrets.INSTALLER_LICENSE }}" > /tmp/license.xml

@@ -444,14 +445,14 @@ jobs:

444 445

run: ${{ env.INSTALLBUILDER_PATH }} build installer.xml ${{ matrix.installbuilder-name }} --verbose --license /tmp/license.xml --setvars ${{ env.INSTALLER_VARS }} architecture=${{ matrix.arch }}

445 446 446 447

- 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}}

448 449

if: matrix.os == 'ubuntu-20.04'

449 450 450 451

- name: Upload artifacts

451 452

uses: actions/upload-artifact@v4

452 453

with:

453 -

name: ArduinoCreateAgent-${{ matrix.platform-name }}-${{ matrix.arch }}

454 -

path: ArduinoCreateAgent*

454 +

name: ArduinoCloudAgent-${{ matrix.platform-name }}-${{ matrix.arch }}

455 +

path: ArduinoCloudAgent*

455 456

if-no-files-found: error

456 457 457 458

# This job will sign the Windows installer

@@ -477,7 +478,7 @@ jobs:

477 478

- name: Download artifact

478 479

uses: actions/download-artifact@v4

479 480

with:

480 -

name: ArduinoCreateAgent-windows-${{ matrix.arch }}

481 +

name: ArduinoCloudAgent-windows-${{ matrix.arch }}

481 482 482 483

- name: Save Win signing certificate to file

483 484

run: echo "${{ secrets.INSTALLER_CERT_WINDOWS_CER }}" | base64 --decode > ${{ env.INSTALLER_CERT_WINDOWS_CER}}

@@ -488,18 +489,18 @@ jobs:

488 489

CONTAINER_NAME: ${{ secrets.INSTALLER_CERT_WINDOWS_CONTAINER }}

489 490

# https://stackoverflow.com/questions/17927895/automate-extended-validation-ev-code-signing-with-safenet-etoken

490 491

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"

492 493 493 494

- name: Upload artifacts

494 495

uses: actions/upload-artifact@v4

495 496

with:

496 497

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

499 500 500 501

# This step is needed because the self hosted runner does not delete files automatically

501 502

- name: Clean up EXE

502 -

run: rm ArduinoCreateAgent-*-windows-${{ matrix.arch }}-installer.exe

503 +

run: rm ArduinoCloudAgent-*-windows-${{ matrix.arch }}-installer.exe

503 504 504 505

# This job will generate a dmg mac installer, sign/notarize it.

505 506

generate-sign-dmg:

@@ -519,30 +520,30 @@ jobs:

519 520

- name: Download artifact

520 521

uses: actions/download-artifact@v4

521 522

with:

522 -

name: ArduinoCreateAgent.app_${{ matrix.arch }}_notarized

523 -

path: ArduinoCreateAgent.app

523 +

name: ArduinoCloudAgent.app_${{ matrix.arch }}_notarized

524 +

path: ArduinoCloudAgent.app

524 525 525 526

- name: unzip artifact

526 -

working-directory: ArduinoCreateAgent.app

527 +

working-directory: ArduinoCloudAgent.app

527 528

run: |

528 529

unzip ArduinoCreateAgent.app_${{ matrix.arch }}_notarized.zip

529 530

rm ArduinoCreateAgent.app_${{ matrix.arch }}_notarized.zip

530 531 531 532

- name: Install create-dmg

532 533

run: brew install create-dmg

533 534 534 -

- name: Genarate DMG

535 +

- name: Generate DMG

535 536

run: |

536 537

create-dmg \

537 -

--volname "ArduinoCreateAgent" \

538 +

--volname "ArduinoCloudAgent" \

538 539

--background "installer_icons/background.tiff" \

539 540

--window-pos 200 120 \

540 541

--window-size 500 320 \

541 542

--icon-size 80 \

542 -

--icon "ArduinoCreateAgent.app" 125 150 \

543 +

--icon "ArduinoCloudAgent.app" 125 150 \

543 544

--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"

546 547 547 548

- name: Import Code-Signing Certificates

548 549

run: |

@@ -572,7 +573,7 @@ jobs:

572 573

# gon does not allow env variables in config file (https://github.com/mitchellh/gon/issues/20)

573 574

run: |

574 575

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"]

576 577

bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}-installer"

577 578 578 579

sign {

@@ -581,7 +582,7 @@ jobs:

581 582 582 583

# Ask Gon for zip output to force notarization process to take place.

583 584

zip {

584 -

output_path = "ArduinoCreateAgent.app_${{ matrix.arch }}_notarized.zip"

585 +

output_path = "ArduinoCloudAgent.app_${{ matrix.arch }}_notarized.zip"

585 586

}

586 587

EOF

587 588

@@ -590,13 +591,13 @@ jobs:

590 591 591 592

# tar dmg file to keep executable permission

592 593

- 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

594 595 595 596

- name: Upload artifacts

596 597

uses: actions/upload-artifact@v4

597 598

with:

598 -

name: ArduinoCreateAgent-osx-${{ matrix.arch }}

599 -

path: ArduinoCreateAgent*.tar

599 +

name: ArduinoCloudAgent-osx-${{ matrix.arch }}

600 +

path: ArduinoCloudAgent*.tar

600 601

if-no-files-found: error

601 602 602 603

create-release:

@@ -617,11 +618,11 @@ jobs:

617 618

- name: prepare artifacts for the release

618 619

run: |

619 620

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/

625 626 626 627

- name: VirusTotal Scan

627 628

id: virustotal_step


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4