mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
2fda866368
Fix name on portable version causing smart-screen warning
13 lines
437 B
JavaScript
13 lines
437 B
JavaScript
const fs = require('fs');
|
|
const package_path = './package.json';
|
|
|
|
let package_file = fs.readFileSync(package_path, {encoding: 'utf-8'});
|
|
let package = JSON.parse(package_file);
|
|
|
|
package.build.artifactName = "${productName}_${arch}_${version}_portable.${ext}";
|
|
|
|
package_file = JSON.stringify(package, null, '\t');
|
|
fs.writeFileSync(package_path, package_file, {encoding: 'utf-8'});
|
|
|
|
console.log('Changed artifactName for portable build');
|