mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-02-17 16:20:13 +08:00
12 lines
428 B
JavaScript
12 lines
428 B
JavaScript
const fs = require('fs');
|
|
const index_path = './index.html';
|
|
|
|
let package_file = fs.readFileSync(index_path, {encoding: 'utf-8'});
|
|
|
|
package_file = package_file.replace('manifest.webmanifest', 'manifest-beta.webmanifest');
|
|
package_file = package_file.replace('favicon.png', 'icons/favicon_beta.png');
|
|
|
|
fs.writeFileSync(index_path, package_file, {encoding: 'utf-8'});
|
|
|
|
console.log('Changed index.html and manifest file to beta');
|