Skip to content

Commit a41c14b

Browse files
fix: electron version parsing
Electron version is now pinned, so replace caret only if found
1 parent 0b81f17 commit a41c14b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)