Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e8e3c3d

Browse files
author
Akos Kitta
committedSep 2, 2019
Use the latest CLI, as stated in the doc.
Signed-off-by: Akos Kitta <[email protected]>
1 parent e6e042c commit e8e3c3d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎arduino-ide-extension/scripts/download-cli.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
// @ts-check
2-
// The links to the downloads as of today (19.08.) are the followings:
2+
// The links to the downloads as of today (02.09.) are the followings:
33
// In order to get the latest nightly build for your platform use the following links replacing <DATE> with the current date, using the format YYYYMMDD (i.e for 2019/Aug/06 use 20190806 )
44
// Linux 64 bit: https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-<DATE>_Linux_64bit.tar.gz
55
// Linux ARM 64 bit: https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-<DATE>_Linux_ARM64.tar.gz
66
// Windows 64 bit: https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-<DATE>_Windows_64bit.zip
77
// Mac OSX: https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-<DATE>_macOS_64bit.tar.gz
8+
// [...]
9+
// redirecting to latest generated builds by replacing latest with the latest available build date, using the format YYYYMMDD (i.e for 2019/Aug/06 latest is replaced with 20190806
810

911
(async () => {
1012

11-
const DEFAULT_VERSION = require('moment')().format('YYYYMMDD');
13+
const DEFAULT_VERSION = 'latest'; // require('moment')().format('YYYYMMDD');
1214

1315
const os = require('os');
1416
const fs = require('fs');
@@ -34,7 +36,7 @@
3436
.option('cli-version', {
3537
alias: 'cv',
3638
default: DEFAULT_VERSION,
37-
describe: `The version of the 'arduino-cli' to download with the YYYYMMDD format. Defaults to ${DEFAULT_VERSION}.`
39+
describe: `The version of the 'arduino-cli' to download with the YYYYMMDD format, or 'latest'. Defaults to ${DEFAULT_VERSION}.`
3840
})
3941
.option('force-download', {
4042
alias: 'fd',

0 commit comments

Comments
 (0)
Please sign in to comment.