mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
build: strip v in the getElectronVersion helper
This commit is contained in:
1
BUILD.gn
1
BUILD.gn
@@ -113,6 +113,7 @@ electron_version = exec_script("script/print-version.py",
|
||||
[
|
||||
".git/packed-refs",
|
||||
".git/HEAD",
|
||||
"script/lib/get-version.js",
|
||||
])
|
||||
|
||||
if (is_mas_build) {
|
||||
|
||||
@@ -18,5 +18,5 @@ module.exports.getElectronVersion = () => {
|
||||
console.error(output.stderr);
|
||||
throw new Error('Failed to get current electron version');
|
||||
}
|
||||
return output.stdout.toString().trim();
|
||||
return output.stdout.toString().trim().replace(/^v/g, '');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user