fix
This commit is contained in:
1 parent
d67473125d
commit
10885a620f
1 file changed
+3
-3
@@ -6,10 +6,10 @@ let targetVersion = process.env.VERSION;
|
||||
console.log("[NapCat] [CheckVersion] currentVersion:", currentVersion, " targetVersion:", targetVersion);
|
||||
// fs.mkdirSync("./dist");
|
||||
if (currentVersion === targetVersion) {
|
||||
fs.appendFileSync("../checkVersion.sh", "#!/bin/bashe\necho \"CheckVersion Is Done\"")
|
||||
fs.writeFileSync("../checkVersion.sh", "#!/bin/bashe\necho \"CheckVersion Is Done\"")
|
||||
} else {
|
||||
let packageJson = JSON.parse(fs.readFileSync("./package.json"));
|
||||
let packageJson = JSON.parse(fs.readFileSync("../package.json"));
|
||||
packageJson.version = targetVersion;
|
||||
fs.writeFileSync("../package.json", JSON.stringify(packageJson));
|
||||
fs.appendFileSync("../checkVersion.sh", "#!/bin/bashe\ngit add .\n git commit -m \"chore:version change\"\n git push")
|
||||
fs.writeFileSync("../checkVersion.sh", "#!/bin/bashe\ngit add .\n git commit -m \"chore:version change\"\n git push")
|
||||
}
|
||||
Reference in new issue
Block a user