添加统一更新版本的方法
This commit is contained in:
parent
963d609e62
commit
b042a36c6d
22
helper/tools/update-version.js
Normal file
22
helper/tools/update-version.js
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
var version = "",
|
||||||
|
newVersion = "";
|
||||||
|
|
||||||
|
process.argv.forEach(function (val, index, array) {
|
||||||
|
if (index === 2) {
|
||||||
|
version = val;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (index === 3) {
|
||||||
|
newVersion = val;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var fs = require("fs");
|
||||||
|
var skins = ["andrea", "classic", "community", "favourite", "i-nove", "neoease", "owmx-3.0", "tree-house"];
|
||||||
|
|
||||||
|
for (var i = 0; i < skins.length; i++) {
|
||||||
|
var fileName = "../../" + skins[i] + "/skin.properties";
|
||||||
|
|
||||||
|
var file = fs.readFileSync(fileName, "UTF-8");
|
||||||
|
fs.writeFileSync(fileName, file.replace("forSolo=" + version, "forSolo=" + newVersion), "UTF-8");
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user