mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Update increase_version.js
This commit is contained in:
parent
51cf15b8cc
commit
e9511e9233
@ -60,6 +60,12 @@ fs.readFile("./version.json", "utf8", (error, data) => {
|
||||
data = data.replace(/VALUE "FileVersion", "\d.\d.\d.0"/g, `VALUE "FileVersion", "${major}.${minor}.${minorminor}.0"`);
|
||||
fileChanged = true;
|
||||
}
|
||||
|
||||
if (data.search(/VALUE "ProductVersion", "\d.\d.\d.0"/g) >= 0) {
|
||||
console.log(`Replacing version in ${file}`);
|
||||
data = data.replace(/VALUE "ProductVersion", "\d.\d.\d.0"/g, `VALUE "ProductVersion", "${major}.${minor}.${minorminor}.0"`);
|
||||
fileChanged = true;
|
||||
}
|
||||
|
||||
if (fileChanged) {
|
||||
fs.writeFile(file, data, 'utf8', (err) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user