Skip to content

Commit e12cf30

Browse files
fix: electron version parsing
Electron version is now pinned, so replace caret only if found
1 parent 06c90b6 commit e12cf30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

electron-app/scripts/package.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async function run() {
1818
'--publish',
1919
'never',
2020
'-c.electronVersion',
21-
electronVersion.slice(1), // removes the leading ^ from the version. TODO: user `semver` to clean it.
21+
semver.clean(electronVersion.replace(/^\^/, '')),
2222
'-c.extraMetadata.version',
2323
version,
2424
// overrides the `name` in the `package.json` to keep the `localStorage` location. (https://github.com/arduino/arduino-ide/pull/2144#pullrequestreview-1554005028)

0 commit comments

Comments
 (0)