29 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			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;
 | |
| packageJsonOpenLens.build.beforeBuild = '../../build-hooks/beforeBuild';
 | |
| //packageJsonOpenLens.devDependencies["electron-builder"] = "24.5.1";
 | |
| //packageJsonOpenLens.scripts.postinstall = "electron-builder install-app-deps"
 | |
| 
 | |
| // 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));
 |