Turn dev versions into minor appx versions
This commit is contained in:
parent
78867ddcce
commit
db4b9bf290
1 changed files with 14 additions and 1 deletions
|
|
@ -2,6 +2,19 @@ const convertToWindowsStore = require('electron-windows-store')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const package = require('../package.json');
|
const package = require('../package.json');
|
||||||
|
|
||||||
|
var majorVer = package.version
|
||||||
|
var minorVer = 0
|
||||||
|
|
||||||
|
if (majorVer.indexOf("alpha") > -1) {
|
||||||
|
minorVer = 1
|
||||||
|
}
|
||||||
|
else if (majorVer.indexOf("beta") > -1) {
|
||||||
|
minorVer = 5
|
||||||
|
}
|
||||||
|
|
||||||
|
var numericVersion = package.version.replace(/[^\d.]/g, '')
|
||||||
|
var appxVersion = `${numericVersion}.${minorVer}`
|
||||||
|
|
||||||
convertToWindowsStore({
|
convertToWindowsStore({
|
||||||
containerVirtualization: false,
|
containerVirtualization: false,
|
||||||
inputDirectory: path.join(__dirname, '../release-builds/openflexure-ev-win32-x64'),
|
inputDirectory: path.join(__dirname, '../release-builds/openflexure-ev-win32-x64'),
|
||||||
|
|
@ -10,7 +23,7 @@ convertToWindowsStore({
|
||||||
identityName: '60425J.T.Collins.OpenFlexureeV',
|
identityName: '60425J.T.Collins.OpenFlexureeV',
|
||||||
packageExecutable: 'app/openflexure-ev.exe',
|
packageExecutable: 'app/openflexure-ev.exe',
|
||||||
packageName: 'OpenFlexureEV',
|
packageName: 'OpenFlexureEV',
|
||||||
packageVersion: `${package.version}.0`,
|
packageVersion: appxVersion,
|
||||||
packageDisplayName: package.productName,
|
packageDisplayName: package.productName,
|
||||||
packageDescription: package.description,
|
packageDescription: package.description,
|
||||||
packageBackgroundColor: '#9C1561',
|
packageBackgroundColor: '#9C1561',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue