From 9583c5b2cc48066487e54929bbbba0ceea248a14 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Thu, 28 Jul 2016 11:18:30 +0200 Subject: [PATCH] Specify app-version and build-version --- build/lib/package-application.js | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/build/lib/package-application.js b/build/lib/package-application.js index e8fde6be2..2beaafda3 100644 --- a/build/lib/package-application.js +++ b/build/lib/package-application.js @@ -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)