26 lines
872 B
JavaScript
26 lines
872 B
JavaScript
const fs = require('fs');
|
|
|
|
const packageJsonOpenLens = require('./lens/open-lens/package.json');
|
|
|
|
packageJsonOpenLens.build.publish = [{
|
|
url: "https://github.com/MuhammedKalkan/OpenLens/releases/download/Latest",
|
|
provider: "generic"
|
|
}];
|
|
|
|
packageJsonOpenLens.version = `${packageJsonOpenLens.version}-${process.env.BUILD_ID}`;
|
|
packageJsonOpenLens.build.npmRebuild = true;
|
|
packageJsonOpenLens.build.detectUpdateChannel = false;
|
|
|
|
delete packageJsonOpenLens.scripts.postinstall;
|
|
|
|
packageJsonOpenLens.copyright = [
|
|
packageJsonOpenLens.copyright,
|
|
'',
|
|
'Binary application builds @ MuhammedKalkan/OpenLens',
|
|
'by Muhammed Kalkan, Jan-Otto Kröpke, Ebby Peter, Xaver Lohmüller'
|
|
].join("\r\n")
|
|
|
|
console.log(`Set build version: ${packageJsonOpenLens.version}`)
|
|
|
|
fs.writeFileSync('./lens/open-lens/package.json', JSON.stringify(packageJsonOpenLens, null, 2));
|