diff --git a/.pipelines/release.yml b/.pipelines/release.yml index e2ff24492b..5da718fd27 100644 --- a/.pipelines/release.yml +++ b/.pipelines/release.yml @@ -376,25 +376,6 @@ jobs: SourceFolder: $(Build.ArtifactStagingDirectory)/Symbols-$(BuildPlatform)/ RemoveSourceFolder: True - - task: PowerShell@2 - displayName: 'Calculating SHA256 hash' - inputs: - targetType: 'inline' - script: | - $p = "$(System.ArtifactsDirectory)\"; - $staging = "$(Build.ArtifactStagingDirectory)\" - $hash = ((get-item $p\*.exe | Get-FileHash).Hash); - $plat = "hash_$(BuildPlatform).txt"; - $combinedPath = $staging + $plat; - - echo $plat - echo $hash - echo $p - echo $combinedPath - - $hash | out-file -filepath $combinedPath - pwsh: true - - template: installer-steps.yml parameters: versionNumber: ${{ parameters.versionNumber }} @@ -431,6 +412,34 @@ jobs: flattenFolders: True targetFolder: $(Build.ArtifactStagingDirectory) + - task: PowerShell@2 + displayName: 'Calculating SHA256 hash' + inputs: + targetType: 'inline' + script: | + $p = "$(System.ArtifactsDirectory)\"; + $staging = "$(Build.ArtifactStagingDirectory)\" + $userHash = ((get-item $p\PowerToysUserSetup*.exe | Get-FileHash).Hash); + $machineHash = ((get-item $p\PowerToysSetup*.exe | Get-FileHash).Hash); + $userPlat = "hash_user_$(BuildPlatform).txt"; + $machinePlat = "hash_machine_$(BuildPlatform).txt"; + $combinedUserPath = $staging + $userPlat; + $combinedMachinePath = $staging + $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 + pwsh: true + - task: PublishBuildArtifacts@1 displayName: "Publish Artifact: PowerToySetup" inputs: