mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fix version parsing in launcher
This commit is contained in:
parent
1346a2f41c
commit
495335899b
@ -56,12 +56,12 @@ namespace Wabbajack.Launcher
|
||||
var releases = await GetReleases();
|
||||
_version = releases.OrderByDescending(r =>
|
||||
{
|
||||
if (Version.TryParse(r.Tag, out var v))
|
||||
if (r.Tag.Split(".").Length == 4 && Version.TryParse(r.Tag, out var v))
|
||||
return v;
|
||||
return new Version(0, 0, 0, 0);
|
||||
}).FirstOrDefault();
|
||||
}
|
||||
catch (Exception)
|
||||
catch (Exception ex)
|
||||
{
|
||||
FinishAndExit();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user