Skip to content

Commit 4d5a046

Browse files
Akos Kittakittaakos
Akos Kitta
authored andcommitted
Switched to the '0.14.0' CLI.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
1 parent c024a8d commit 4d5a046

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

Diff for: arduino-ide-extension/data/cli/schema/arduino-cli.schema.json

+12
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,18 @@
119119
"additionalProperties": false
120120
},
121121
"additionalProperties": false
122+
},
123+
"library": {
124+
"type": "object",
125+
"description": "Library Configuration",
126+
"properties": {
127+
"enable_unsafe_install": {
128+
"type": "boolean",
129+
"description": "Set to 'true' to enable the use of the '--git-url' and '--zip-file' flags with 'arduino-cli lib install' These are considered 'unsafe' installation methods because they allow installing files that have not passed through the Library Manager submission process."
130+
},
131+
"additionalProperties": false
132+
},
133+
"additionalProperties": false
122134
}
123135
},
124136
"additionalProperties": false

Diff for: arduino-ide-extension/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
],
121121
"arduino": {
122122
"cli": {
123-
"version": "20201201"
123+
"version": "0.14.0"
124124
}
125125
}
126126
}

Diff for: arduino-ide-extension/scripts/generate-protocol.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@
6666
const { platform } = process;
6767
const build = path.join(__dirname, '..', 'build');
6868
const cli = path.join(build, `arduino-cli${platform === 'win32' ? '.exe' : ''}`);
69-
const rawVersion = shell.exec(`${cli} version`).trim();
70-
if (!rawVersion) {
69+
const jsonVersion = shell.exec(`${cli} version --format json`).trim();
70+
if (!jsonVersion) {
7171
shell.echo(`Could not retrieve the CLI version from ${cli}.`);
7272
shell.exit(1);
7373
}
74-
const version = rawVersion.substring(rawVersion.lastIndexOf('Commit:') + 'Commit:'.length).trim();
74+
const version = JSON.parse(jsonVersion).VersionString;
7575
if (version) {
7676
shell.echo(`>>> Checking out version: ${version}...`);
7777
if (shell.exec(`git -C ${repository} checkout ${version} -b ${version}`).code !== 0) {

0 commit comments

Comments
 (0)