From d322c35b31577cf8cd5fbde53d9d08e8aea86bbd Mon Sep 17 00:00:00 2001 From: "Peiyao Zhao (from Dev Box)" Date: Thu, 13 Mar 2025 10:44:47 +0800 Subject: [PATCH] update --- .pipelines/v2/templates/job-build-project.yml | 24 +++++++++++++++++++ .pipelines/verifyArm64Configuration.ps1 | 13 ++++++++++ installer/PowerToysSetupVNext/Common.wxi | 4 ++-- installer/PowerToysSetupVNext/PowerToys.wxs | 2 +- .../PowerToysBootstrapperVNext.wixproj | 10 ++++---- .../PowerToysInstallerVNext.wixproj | 6 ++--- 6 files changed, 48 insertions(+), 11 deletions(-) diff --git a/.pipelines/v2/templates/job-build-project.yml b/.pipelines/v2/templates/job-build-project.yml index 9171aaa2c1..582492da6f 100644 --- a/.pipelines/v2/templates/job-build-project.yml +++ b/.pipelines/v2/templates/job-build-project.yml @@ -470,6 +470,30 @@ jobs: $machineHash | out-file -filepath $combinedMachinePath displayName: Calculate file hashes +# Output config for installer vnext + - pwsh: |- + $p = "$(JobOutputDirectory)\" + $userHash = ((Get-Item $p\PowerToysUserSetupVNext*.exe | Get-FileHash).Hash); + $machineHash = ((Get-Item $p\PowerToysSetupVNext*.exe | Get-FileHash).Hash); + $userPlat = "hash_user_$(BuildPlatform).txt"; + $machinePlat = "hash_machine_$(BuildPlatform).txt"; + $combinedUserPath = $p + $userPlat; + $combinedMachinePath = $p + $machinePlat; + + echo $p + + echo $userPlat + echo $userHash + echo $combinedUserPath + + echo $machinePlat + echo $machineHash + echo $combinedMachinePath + + $userHash | out-file -filepath $combinedUserPath + $machineHash | out-file -filepath $combinedMachinePath + displayName: Calculate file hashes + # Publishing the GPO files - pwsh: |- New-Item "$(JobOutputDirectory)/gpo" -Type Directory diff --git a/.pipelines/verifyArm64Configuration.ps1 b/.pipelines/verifyArm64Configuration.ps1 index a509ec374f..ac324673de 100644 --- a/.pipelines/verifyArm64Configuration.ps1 +++ b/.pipelines/verifyArm64Configuration.ps1 @@ -6,6 +6,19 @@ Param( Write-Output "Verifying Arm64 configuration for $solution" +if ($solution -like "*PowerToysSetupVNext.sln*") { + # 获取当前命令执行的路径 + $currentPath = Get-Location + + # 获取当前路径下的所有文件 + $files = Get-ChildItem -Path $currentPath + Write-Output "work here.>>>>>>>>>>>>>>>>>>>>>>" + # 打印文件列表 + foreach ($file in $files) { + Write-Output $file.Name + } +} + $errorTable = @{} $MSBuildLoc = & "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -prerelease -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\Microsoft.Build.dll diff --git a/installer/PowerToysSetupVNext/Common.wxi b/installer/PowerToysSetupVNext/Common.wxi index 21855a7936..56f4c1ed21 100644 --- a/installer/PowerToysSetupVNext/Common.wxi +++ b/installer/PowerToysSetupVNext/Common.wxi @@ -37,7 +37,7 @@ - + @@ -46,7 +46,7 @@ - + diff --git a/installer/PowerToysSetupVNext/PowerToys.wxs b/installer/PowerToysSetupVNext/PowerToys.wxs index 2e50d278fb..73c79b05df 100644 --- a/installer/PowerToysSetupVNext/PowerToys.wxs +++ b/installer/PowerToysSetupVNext/PowerToys.wxs @@ -16,7 +16,7 @@ diff --git a/installer/PowerToysSetupVNext/PowerToysBootstrapperVNext.wixproj b/installer/PowerToysSetupVNext/PowerToysBootstrapperVNext.wixproj index f5ee3564c1..c35f64cbc6 100644 --- a/installer/PowerToysSetupVNext/PowerToysBootstrapperVNext.wixproj +++ b/installer/PowerToysSetupVNext/PowerToysBootstrapperVNext.wixproj @@ -23,13 +23,13 @@ arm64 3.10 2.0 - PowerToysSetup-$(Version)-$(Platform) + PowerToysSetupVNext-$(Version)-$(Platform) Bundle True - PowerToysSetup-$(Version)-$(Platform) - PowerToysUserSetup-$(Version)-$(Platform) - $(Platform)\$(Configuration)\MachineSetup - $(Platform)\$(Configuration)\UserSetup + PowerToysSetupVNext-$(Version)-$(Platform) + PowerToysUserSetupVNext-$(Version)-$(Platform) + $(Platform)\$(Configuration)\MachineSetupVNext + $(Platform)\$(Configuration)\UserSetupVNext obj\$(Platform)\$(Configuration)\ diff --git a/installer/PowerToysSetupVNext/PowerToysInstallerVNext.wixproj b/installer/PowerToysSetupVNext/PowerToysInstallerVNext.wixproj index d3c052aaec..1ebee6d87d 100644 --- a/installer/PowerToysSetupVNext/PowerToysInstallerVNext.wixproj +++ b/installer/PowerToysSetupVNext/PowerToysInstallerVNext.wixproj @@ -29,7 +29,7 @@ call powershell.exe -NonInteractive -executionpolicy Unrestricted -File $(MSBuil Always - call move /Y ..\..\..\AdvancedPaste.wxs.bk ..\..\..\AdvancedPaste.wxs + call move /Y ..\..\..\AdvancedPaste.wxs.bk ..\..\..\AdvancedPaste.wxs call move /Y ..\..\..\Awake.wxs.bk ..\..\..\Awake.wxs call move /Y ..\..\..\BaseApplications.wxs.bk ..\..\..\BaseApplications.wxs call move /Y ..\..\..\ColorPicker.wxs.bk ..\..\..\ColorPicker.wxs @@ -95,8 +95,8 @@ call powershell.exe -NonInteractive -executionpolicy Unrestricted -File $(MSBuil 3.10 {b6e94700-df38-41f6-a3fd-18b69674ab1e} 2.0 - PowerToysSetup-$(Version)-$(Platform) - PowerToysUserSetup-$(Version)-$(Platform) + PowerToysSetupVNext-$(Version)-$(Platform) + PowerToysUserSetupVNext-$(Version)-$(Platform) Package True