build script fixes

This commit is contained in:
Eugene Pankov
2018-12-15 15:49:06 +01:00
parent 384744ec44
commit d4db8f4b18
2 changed files with 13 additions and 19 deletions

View File

@@ -3,7 +3,7 @@ const fs = require('fs')
const childProcess = require('child_process')
const appInfo = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../app/package.json')))
const pkgInfo = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../package.json')))
const electronInfo = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../node_modules/electron/package.json')))
exports.version = childProcess.execSync('git describe --tags', {encoding:'utf-8'})
exports.version = exports.version.substring(1, exports.version.length - 1)
@@ -20,4 +20,4 @@ exports.bundledModules = [
'@angular',
'@ng-bootstrap',
]
exports.electronVersion = pkgInfo.devDependencies.electron
exports.electronVersion = electronInfo.version