mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-23 09:48:37 +00:00
Misc
This commit is contained in:
@@ -75,13 +75,11 @@ namespace ConfigGenerator {
|
|||||||
FileVersionInfo asfVersionInfo = FileVersionInfo.GetVersionInfo(ASFExecutableFile);
|
FileVersionInfo asfVersionInfo = FileVersionInfo.GetVersionInfo(ASFExecutableFile);
|
||||||
Version asfVersion = new Version(asfVersionInfo.ProductVersion);
|
Version asfVersion = new Version(asfVersionInfo.ProductVersion);
|
||||||
|
|
||||||
Version cgVersion = Assembly.GetEntryAssembly().GetName().Version;
|
if (asfVersion == SharedInfo.Version) {
|
||||||
|
|
||||||
if (asfVersion == cgVersion) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Logging.LogGenericErrorWithoutStacktrace(string.Format(CGStrings.ErrorVersionMismatch, asfVersion, cgVersion));
|
Logging.LogGenericErrorWithoutStacktrace(string.Format(CGStrings.ErrorVersionMismatch, asfVersion, SharedInfo.Version));
|
||||||
Process.Start("https://github.com/" + SharedInfo.GithubRepo + "/releases/tag/" + asfVersion);
|
Process.Start("https://github.com/" + SharedInfo.GithubRepo + "/releases/tag/" + asfVersion);
|
||||||
Environment.Exit(1);
|
Environment.Exit(1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user