pub tool IsUseCustomVersion

This commit is contained in:
Aigio Liu
2021-12-07 19:51:11 +08:00
parent f4f0f35267
commit 3e545b2c13
+3 -2
View File
@@ -249,6 +249,7 @@ namespace System.Application
}
static string? mVersion;
public static bool IsUseCustomVersion => mVersion != null;
public static string Version
{
[Obsolete("use GetVersion(bool)")]
@@ -286,9 +287,9 @@ namespace System.Application
var fileName = item.DeploymentMode switch
{
DeploymentMode.SCD =>
$"Steam++_{name}_v{version}{fileEx}",
$"Steam++_{name}_{(IsUseCustomVersion ? "" : "v")}{version}{fileEx}",
DeploymentMode.FDE =>
$"Steam++_{name}_fde_v{version}{fileEx}",
$"Steam++_{name}_fde_{(IsUseCustomVersion ? "" : "v")}{version}{fileEx}",
_ => throw new ArgumentOutOfRangeException(nameof(item.DeploymentMode), item.DeploymentMode, null),
};
return fileName;