Implement Build Number
This commit is contained in:
parent
eeecbfe469
commit
64095ea972
13
update.js
13
update.js
|
|
@ -1,13 +1,16 @@
|
|||
const fs = require('fs');
|
||||
|
||||
var packagejson = require('./lens/open-lens/package.json');
|
||||
const packageJsonOpenLens = require('./lens/open-lens/package.json');
|
||||
|
||||
packagejson.build.publish = [{
|
||||
packageJsonOpenLens.build.publish = [{
|
||||
url: "https://github.com/MuhammedKalkan/OpenLens/releases/download/Latest",
|
||||
provider: "generic"
|
||||
}];
|
||||
|
||||
packagejson.build.win.artifactName = "OpenLens.Setup.${version}.${ext}";
|
||||
packagejson.build.npmRebuild = true;
|
||||
packageJsonOpenLens.version = `${packageJsonOpenLens.version}+${process.env.BUILD_NUMBER}`;
|
||||
packageJsonOpenLens.build.artifactName = "${productName}-${buildVersion}-${arch}-${os}.${ext}";
|
||||
packageJsonOpenLens.build.linux.artifactName = packageJsonOpenLens.build.linux.artifactName.replace("${version}", "${buildVersion}");
|
||||
packageJsonOpenLens.build.win.artifactName = "OpenLens.Setup.${buildVersion}.${ext}";
|
||||
packageJsonOpenLens.build.npmRebuild = true;
|
||||
|
||||
fs.writeFileSync('./lens/open-lens/package.json', JSON.stringify(packagejson));
|
||||
fs.writeFileSync('./lens/open-lens/package.json', JSON.stringify(packageJsonOpenLens, null, 2));
|
||||
|
|
|
|||
Loading…
Reference in New Issue