Compare commits

..

1 Commits

Author SHA1 Message Date
qhy040404
6864124c64 add alpha build constant 2024-05-12 12:21:43 +08:00
3 changed files with 14 additions and 4 deletions

View File

@@ -11,6 +11,15 @@ var version = "version";
var repoDir = "repoDir";
var outputPath = "outputPath";
// Extension
static ProcessArgumentBuilder AppendIf(this ProcessArgumentBuilder builder, string text, bool condition)
{
return condition ? builder.Append(text) : builder;
}
// Properties
string solution
{
get => System.IO.Path.Combine(repoDir, "src", "Snap.Hutao", "Snap.Hutao.sln");
@@ -157,6 +166,7 @@ Task("Build binary package")
.Append("/p:AppxPackageSigningEnabled=false")
.Append("/p:AppxBundle=Never")
.Append("/p:AppxPackageOutput=" + outputPath)
.AppendIf("/p:AlphaConstants=IS_ALPHA_BUILD", !AppVeyor.IsRunningOnAppVeyor)
};
DotNetBuild(project, settings);

View File

@@ -25,7 +25,7 @@
<AppxBundle>Never</AppxBundle>
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
<StartupObject>Snap.Hutao.Program</StartupObject>
<DefineConstants>$(DefineConstants);DISABLE_XAML_GENERATED_MAIN;DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION;DISABLE_XAML_GENERATED_BINDING_DEBUG_OUTPUT</DefineConstants>
<DefineConstants>$(DefineConstants);DISABLE_XAML_GENERATED_MAIN;DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION;DISABLE_XAML_GENERATED_BINDING_DEBUG_OUTPUT;$(AlphaConstants)</DefineConstants>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<DebugSymbols>true</DebugSymbols>
<DebugType>embedded</DebugType>

View File

@@ -66,7 +66,7 @@ internal sealed partial class TypedWishSummary : Wish
/// </summary>
public string TotalOrangeFormatted
{
get => $"{TotalOrangePull} [{(TotalOrangePercent is double.NaN ? 0D : TotalOrangePercent),6:p2}]";
get => $"{TotalOrangePull} [{TotalOrangePercent,6:p2}]";
}
/// <summary>
@@ -74,7 +74,7 @@ internal sealed partial class TypedWishSummary : Wish
/// </summary>
public string TotalPurpleFormatted
{
get => $"{TotalPurplePull} [{(TotalPurplePercent is double.NaN ? 0D : TotalPurplePercent),6:p2}]";
get => $"{TotalPurplePull} [{TotalPurplePercent,6:p2}]";
}
/// <summary>
@@ -82,7 +82,7 @@ internal sealed partial class TypedWishSummary : Wish
/// </summary>
public string TotalBlueFormatted
{
get => $"{TotalBluePull} [{(TotalBluePercent is double.NaN ? 0D : TotalBluePercent),6:p2}]";
get => $"{TotalBluePull} [{TotalBluePercent,6:p2}]";
}
public ColorSegmentCollection PullPercentSegmentSource