From bde51220605d408a0fa81759006e7b03871e1cc2 Mon Sep 17 00:00:00 2001 From: qhy040404 Date: Fri, 8 Dec 2023 10:01:34 +0800 Subject: [PATCH] change target repo and avoid abs path --- azure-pipelines.yml | 2 +- build.cake | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 31d95af2..a4ca8a38 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -77,7 +77,7 @@ steps: - task: GitHubRelease@1 inputs: gitHubConnection: 'github.com_Masterain' - repositoryName: 'DGP-Studio/Snap.Hutao' + repositoryName: 'DGP-Automation/Hutao-Auto-Release' action: 'create' target: '$(Build.SourceVersion)' tagSource: 'userSpecifiedTag' diff --git a/build.cake b/build.cake index 27344afc..31a5f671 100644 --- a/build.cake +++ b/build.cake @@ -96,7 +96,7 @@ Task("Build MSIX") .Does(() => { var p = StartProcess( - "C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\x64\\makeappx.exe", + "makeappx.exe", new ProcessSettings { Arguments = "pack /d " + binPath + " /p " + System.IO.Path.Combine(outputPath, $"Snap.Hutao.Alpha-{version}.msix") @@ -113,7 +113,7 @@ Task("Sign MSIX") .Does(() => { var p = StartProcess( - "C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\x64\\signtool.exe", + "signtool.exe", new ProcessSettings { Arguments = "sign /debug /v /a /fd SHA256 /f " + System.IO.Path.Combine(AzurePipelines.Environment.Agent.HomeDirectory.FullPath, "_work", "_temp", "DGP_Studio_CI.pfx") + " /p " + pw + " " + System.IO.Path.Combine(outputPath, $"Snap.Hutao.Alpha-{version}.msix")