Specify app-version and build-version

This commit is contained in:
Antonio Scandurra
2016-07-28 11:18:30 +02:00
parent f953287e54
commit 9583c5b2cc

View File

@@ -16,15 +16,17 @@ module.exports = function () {
console.log(`Running electron-packager on ${CONFIG.intermediateAppPath}`)
// https://github.com/electron-userland/electron-packager/blob/master/docs/api.md
electronPackager({
arch: process.arch,
asar: {unpack: buildAsarUnpackGlobExpression()},
download: {cache: CONFIG.cachePath},
dir: CONFIG.intermediateAppPath,
ignore: buildIgnoredPathsRegExp(),
out: CONFIG.buildOutputPath,
overwrite: true,
platform: process.platform,
version: CONFIG.appMetadata.electronVersion
'app-version': CONFIG.appMetadata.version,
'arch': process.arch,
'asar': {unpack: buildAsarUnpackGlobExpression()},
'build-version': CONFIG.appMetadata.version,
'download': {cache: CONFIG.cachePath},
'dir': CONFIG.intermediateAppPath,
'ignore': buildIgnoredPathsRegExp(),
'out': CONFIG.buildOutputPath,
'overwrite': true,
'platform': process.platform,
'version': CONFIG.appMetadata.electronVersion
}, (err, appPaths) => {
if (err) {
console.error(err)