Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎electron-app/scripts/package.js‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /