From d7863ab5e05503cbfe7d32c8e426412f23edd091 Mon Sep 17 00:00:00 2001 From: qhy040404 Date: Sat, 9 Dec 2023 11:12:25 +0800 Subject: [PATCH] code style --- build.cake | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/build.cake b/build.cake index 9044cfcb..c243e0e2 100644 --- a/build.cake +++ b/build.cake @@ -35,14 +35,14 @@ if (AzurePipelines.IsRunningOnAzurePipelines) var versionAuth = HasEnvironmentVariable("VERSION_API_TOKEN") ? EnvironmentVariable("VERSION_API_TOKEN") : throw new Exception("Cannot find VERSION_API_TOKEN"); version = HttpGet( - "https://internal.snapgenshin.cn/BuildIntergration/RequestNewVersion", - new HttpSettings - { - Headers = new Dictionary - { - { "Authorization", versionAuth } - } - } + "https://internal.snapgenshin.cn/BuildIntergration/RequestNewVersion", + new HttpSettings + { + Headers = new Dictionary + { + { "Authorization", versionAuth } + } + } ); Information($"Version: {version}"); @@ -54,9 +54,9 @@ else if (AppVeyor.IsRunningOnAppVeyor) outputPath = System.IO.Path.Combine(repoDir, "src", "output"); version = XmlPeek(manifest, "appx:Package/appx:Identity/@Version", new XmlPeekSettings - { - Namespaces = new Dictionary { { "appx", "http://schemas.microsoft.com/appx/manifest/foundation/windows10" } } - })[..^2]; + { + Namespaces = new Dictionary { { "appx", "http://schemas.microsoft.com/appx/manifest/foundation/windows10" } } + })[..^2]; Information($"Version: {version}"); } @@ -72,11 +72,11 @@ Task("NuGet Restore") var nugetConfig = System.IO.Path.Combine(repoDir, "NuGet.Config"); DotNetRestore(project, new DotNetRestoreSettings - { - Verbosity = DotNetVerbosity.Detailed, - Interactive = false, - ConfigFile = nugetConfig - }); + { + Verbosity = DotNetVerbosity.Detailed, + Interactive = false, + ConfigFile = nugetConfig + }); }); Task("Generate AppxManifest") @@ -90,9 +90,9 @@ Task("Generate AppxManifest") { Information("Using CI configuraion"); content = content - .Replace("Snap Hutao", "Snap Hutao Alpha") - .Replace("胡桃", "胡桃 Alpha") - .Replace("DGP Studio", "DGP Studio CI"); + .Replace("Snap Hutao", "Snap Hutao Alpha") + .Replace("胡桃", "胡桃 Alpha") + .Replace("DGP Studio", "DGP Studio CI"); content = System.Text.RegularExpressions.Regex.Replace(content, " Name=\"([^\"]*)\"", " Name=\"7f0db578-026f-4e0b-a75b-d5d06bb0a74c\""); content = System.Text.RegularExpressions.Regex.Replace(content, " Publisher=\"([^\"]*)\"", " Publisher=\"CN=DGP Studio CI\""); content = System.Text.RegularExpressions.Regex.Replace(content, " Version=\"([0-9\\.]+)\"", $" Version=\"{version}\"");