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);
|
||||
Version asfVersion = new Version(asfVersionInfo.ProductVersion);
|
||||
|
||||
Version cgVersion = Assembly.GetEntryAssembly().GetName().Version;
|
||||
|
||||
if (asfVersion == cgVersion) {
|
||||
if (asfVersion == SharedInfo.Version) {
|
||||
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);
|
||||
Environment.Exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user