mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-13 14:26:37 +00:00
fix: electron version parsing
Electron version is now pinned, so replace caret only if found
This commit is contained in:
parent
479f846c5a
commit
172544f57c
@ -18,7 +18,7 @@ async function run() {
|
|||||||
'--publish',
|
'--publish',
|
||||||
'never',
|
'never',
|
||||||
'-c.electronVersion',
|
'-c.electronVersion',
|
||||||
electronVersion.slice(1), // removes the leading ^ from the version. TODO: user `semver` to clean it.
|
semver.clean(electronVersion.replace(/^\^/, '')),
|
||||||
'-c.extraMetadata.version',
|
'-c.extraMetadata.version',
|
||||||
version,
|
version,
|
||||||
// overrides the `name` in the `package.json` to keep the `localStorage` location. (https://github.com/arduino/arduino-ide/pull/2144#pullrequestreview-1554005028)
|
// overrides the `name` in the `package.json` to keep the `localStorage` location. (https://github.com/arduino/arduino-ide/pull/2144#pullrequestreview-1554005028)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user