mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Remove build suffix from version when reporting to sentry
This commit is contained in:
@ -86,6 +86,8 @@ namespace osu.Game
|
|||||||
|
|
||||||
public bool IsDeployedBuild => AssemblyVersion.Major > 0;
|
public bool IsDeployedBuild => AssemblyVersion.Major > 0;
|
||||||
|
|
||||||
|
internal const string BUILD_SUFFIX = "lazer";
|
||||||
|
|
||||||
public virtual string Version
|
public virtual string Version
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -94,7 +96,7 @@ namespace osu.Game
|
|||||||
return @"local " + (DebugUtils.IsDebugBuild ? @"debug" : @"release");
|
return @"local " + (DebugUtils.IsDebugBuild ? @"debug" : @"release");
|
||||||
|
|
||||||
var version = AssemblyVersion;
|
var version = AssemblyVersion;
|
||||||
return $@"{version.Major}.{version.Minor}.{version.Build}-lazer";
|
return $@"{version.Major}.{version.Minor}.{version.Build}-{BUILD_SUFFIX}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ namespace osu.Game.Utils
|
|||||||
|
|
||||||
options.AutoSessionTracking = true;
|
options.AutoSessionTracking = true;
|
||||||
options.IsEnvironmentUser = false;
|
options.IsEnvironmentUser = false;
|
||||||
options.Release = game.Version;
|
options.Release = game.Version.Replace($@"-{OsuGameBase.BUILD_SUFFIX}", string.Empty);
|
||||||
});
|
});
|
||||||
|
|
||||||
Logger.NewEntry += processLogEntry;
|
Logger.NewEntry += processLogEntry;
|
||||||
|
Reference in New Issue
Block a user