blockbench/scripts/rename_portable.js
JannisX11 1960ccbe6a Fix screen color picker not changing color
Fix portable version artifact name
2021-06-24 13:44:26 +02:00

13 lines
429 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}_${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');