more stuff
This commit is contained in:
parent
3ca0fcf457
commit
7b78b9578b
|
|
@ -194,12 +194,19 @@ namespace NovetusCMD
|
|||
if (GlobalVars.IsSnapshot == true)
|
||||
{
|
||||
var versionInfo = FileVersionInfo.GetVersionInfo(GlobalVars.BasePath + "\\Novetus.exe");
|
||||
GlobalVars.Version = lines[6].Replace("%version%", lines[0]).Replace("%build%", versionInfo.ProductBuildPart.ToString()).Replace("%revision%", versionInfo.FilePrivatePart.ToString());
|
||||
string[] changelogedit = File.ReadAllLines(GlobalVars.BasePath + "\\changelog.txt");
|
||||
if (!changelogedit[0].Equals(GlobalVars.Version))
|
||||
GlobalVars.Version = lines[6].Replace("%version%", lines[0])
|
||||
.Replace("%build%", versionInfo.ProductBuildPart.ToString())
|
||||
.Replace("%revision%", versionInfo.FilePrivatePart.ToString())
|
||||
.Replace("%snapshot-revision%", lines[7]);
|
||||
string changelog = GlobalVars.BasePath + "\\changelog.txt";
|
||||
if (File.Exists(changelog))
|
||||
{
|
||||
changelogedit[0] = GlobalVars.Version;
|
||||
File.WriteAllLines(GlobalVars.BasePath + "\\changelog.txt", changelogedit);
|
||||
string[] changelogedit = File.ReadAllLines(changelog);
|
||||
if (!changelogedit[0].Equals(GlobalVars.Version))
|
||||
{
|
||||
changelogedit[0] = GlobalVars.Version;
|
||||
File.WriteAllLines(changelog, changelogedit);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -367,12 +367,19 @@ namespace NovetusLauncher
|
|||
GlobalVars.IsSnapshot = Convert.ToBoolean(lines[5]);
|
||||
if (GlobalVars.IsSnapshot == true)
|
||||
{
|
||||
GlobalVars.Version = lines[6].Replace("%version%", lines[0]).Replace("%build%", Assembly.GetExecutingAssembly().GetName().Version.Build.ToString()).Replace("%revision%", Assembly.GetExecutingAssembly().GetName().Version.Revision.ToString());
|
||||
string[] changelogedit = File.ReadAllLines(GlobalVars.BasePath + "\\changelog.txt");
|
||||
if (!changelogedit[0].Equals(GlobalVars.Version))
|
||||
GlobalVars.Version = lines[6].Replace("%version%", lines[0])
|
||||
.Replace("%build%", Assembly.GetExecutingAssembly().GetName().Version.Build.ToString())
|
||||
.Replace("%revision%", Assembly.GetExecutingAssembly().GetName().Version.Revision.ToString())
|
||||
.Replace("%snapshot-revision%", lines[7]);
|
||||
string changelog = GlobalVars.BasePath + "\\changelog.txt";
|
||||
if (File.Exists(changelog))
|
||||
{
|
||||
changelogedit[0] = GlobalVars.Version;
|
||||
File.WriteAllLines(GlobalVars.BasePath + "\\changelog.txt", changelogedit);
|
||||
string[] changelogedit = File.ReadAllLines(changelog);
|
||||
if (!changelogedit[0].Equals(GlobalVars.Version))
|
||||
{
|
||||
changelogedit[0] = GlobalVars.Version;
|
||||
File.WriteAllLines(changelog, changelogedit);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -37,12 +37,19 @@ namespace NovetusLauncher
|
|||
GlobalVars.IsSnapshot = Convert.ToBoolean(lines[5]);
|
||||
if (GlobalVars.IsSnapshot == true)
|
||||
{
|
||||
GlobalVars.Version = lines[6].Replace("%version%", lines[0]).Replace("%build%", Assembly.GetExecutingAssembly().GetName().Version.Build.ToString()).Replace("%revision%", Assembly.GetExecutingAssembly().GetName().Version.Revision.ToString());
|
||||
string[] changelogedit = File.ReadAllLines(GlobalVars.BasePath + "\\changelog.txt");
|
||||
if (!changelogedit[0].Equals(GlobalVars.Version))
|
||||
GlobalVars.Version = lines[6].Replace("%version%", lines[0])
|
||||
.Replace("%build%", Assembly.GetExecutingAssembly().GetName().Version.Build.ToString())
|
||||
.Replace("%revision%", Assembly.GetExecutingAssembly().GetName().Version.Revision.ToString())
|
||||
.Replace("%snapshot-revision%", lines[7]);
|
||||
string changelog = GlobalVars.BasePath + "\\changelog.txt";
|
||||
if (File.Exists(changelog))
|
||||
{
|
||||
changelogedit[0] = GlobalVars.Version;
|
||||
File.WriteAllLines(GlobalVars.BasePath + "\\changelog.txt", changelogedit);
|
||||
string[] changelogedit = File.ReadAllLines(changelog);
|
||||
if (!changelogedit[0].Equals(GlobalVars.Version))
|
||||
{
|
||||
changelogedit[0] = GlobalVars.Version;
|
||||
File.WriteAllLines(changelog, changelogedit);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -64,12 +64,19 @@ namespace NovetusLauncher
|
|||
GlobalVars.IsSnapshot = Convert.ToBoolean(lines[5]);
|
||||
if (GlobalVars.IsSnapshot == true)
|
||||
{
|
||||
GlobalVars.Version = lines[6].Replace("%version%", lines[0]).Replace("%build%", Assembly.GetExecutingAssembly().GetName().Version.Build.ToString()).Replace("%revision%", Assembly.GetExecutingAssembly().GetName().Version.Revision.ToString());
|
||||
string[] changelogedit = File.ReadAllLines(GlobalVars.BasePath + "\\changelog.txt");
|
||||
if (!changelogedit[0].Equals(GlobalVars.Version))
|
||||
GlobalVars.Version = lines[6].Replace("%version%", lines[0])
|
||||
.Replace("%build%", Assembly.GetExecutingAssembly().GetName().Version.Build.ToString())
|
||||
.Replace("%revision%", Assembly.GetExecutingAssembly().GetName().Version.Revision.ToString())
|
||||
.Replace("%snapshot-revision%", lines[7]);
|
||||
string changelog = GlobalVars.BasePath + "\\changelog.txt";
|
||||
if (File.Exists(changelog))
|
||||
{
|
||||
changelogedit[0] = GlobalVars.Version;
|
||||
File.WriteAllLines(GlobalVars.BasePath + "\\changelog.txt", changelogedit);
|
||||
string[] changelogedit = File.ReadAllLines(changelog);
|
||||
if (!changelogedit[0].Equals(GlobalVars.Version))
|
||||
{
|
||||
changelogedit[0] = GlobalVars.Version;
|
||||
File.WriteAllLines(changelog, changelogedit);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue