Skip to content

Commit e65994a

Browse files
authored
Merge pull request #33 from TMBotDev/beta
测试
2 parents 6e959a6 + dc0cfb1 commit e65994a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,13 @@ async function load() {
9191
if (process.argv.indexOf("-syncVer")) {
9292
let json = JSON.parse(FileClass.readFrom("./package.json")!);
9393
json["version"] = Version.version.join(".");
94-
FileClass.writeTo("./package.json", JSON.stringify(json, null, 2));
94+
let str = JSON.stringify(json, null, 2);
95+
if (FileClass.writeTo("./package.json", str)) {
96+
MainLogger.warn(`package.json version changed to ${json["version"]}`);
97+
} else {
98+
MainLogger.error(`Change package.json Version Fail!`);
99+
}
100+
MainLogger.warn(str);
95101
return;
96102
}
97103
if (FileClass.exists("./NO_COLOR")) {

0 commit comments

Comments
 (0)