Skip to content

Commit cb515e9

Browse files
committed
Use name from package.json
1 parent b0e5c4b commit cb515e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

script/windows-store.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const ChildProcess = require('child_process')
22
const path = require('path')
33

4-
const version = require('../package').version + '.0'
4+
const metadata = require('../package')
55

66
const command = path.join(__dirname, '..', 'node_modules', '.bin', 'electron-windows-store.cmd')
77
const args = [
@@ -12,9 +12,9 @@ const args = [
1212
'--flatten',
1313
true,
1414
'--package-version',
15-
version,
15+
metadata.version + '.0',
1616
'--package-name',
17-
'ElectronAPIDemos'
17+
metadata.name
1818
]
1919

2020
const windowsStore = ChildProcess.spawn(command, args, {stdio: 'inherit'})

0 commit comments

Comments
 (0)