From 1fc7a59b7c3e988dd0d2f6b42e479b6478857f22 Mon Sep 17 00:00:00 2001 From: "Dustin L. Howett" Date: Tue, 5 Apr 2022 03:58:03 -0500 Subject: [PATCH] Make sure the final WiX bundle contains a *signed* MSI (#17446) * Make sure the *signed* MSI makes it into the bundle * And don't let Bootstrapper force-build MSI * Revert "And don't let Bootstrapper force-build MSI" This reverts commit 77cea1100817a62ff649b716a9572acddb6114ef. * try this wacky hacky sacky thing * Revert "Revert "And don't let Bootstrapper force-build MSI"" This reverts commit 7d25009932c6dae150754796a2804c7af27d8180. * Revert "try this wacky hacky sacky thing" This reverts commit 0fea6df635ed0fc41fde8db11f8555d1275daa03. * ah the things i hate --- .pipelines/ci/templates/build-powertoys-steps.yml | 15 +++++++++++++-- .pipelines/release.yml | 4 ++-- installer/PowerToysSetup.sln | 3 --- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.pipelines/ci/templates/build-powertoys-steps.yml b/.pipelines/ci/templates/build-powertoys-steps.yml index 78f216a6ab..7fc02ea064 100644 --- a/.pipelines/ci/templates/build-powertoys-steps.yml +++ b/.pipelines/ci/templates/build-powertoys-steps.yml @@ -92,13 +92,24 @@ steps: restoreDirectory: '$(Build.SourcesDirectory)\installer\packages' - task: VSBuild@1 - displayName: 'Build PowerToysSetup.sln' + displayName: 'Build PowerToys MSI' inputs: solution: '**\installer\PowerToysSetup.sln' vsVersion: 17.0 platform: '$(BuildPlatform)' configuration: '$(BuildConfiguration)' - msbuildArgs: ${{ parameters.additionalBuildArguments }} + msbuildArgs: /t:PowerToysInstaller ${{ parameters.additionalBuildArguments }} + maximumCpuCount: true + +- task: VSBuild@1 + displayName: 'Build PowerToys Bootstrapper' + inputs: + solution: '**\installer\PowerToysSetup.sln' + vsVersion: 17.0 + platform: '$(BuildPlatform)' + configuration: '$(BuildConfiguration)' + msbuildArgs: /t:PowerToysBootstrapper ${{ parameters.additionalBuildArguments }} + clean: false maximumCpuCount: true # directly not doing WinAppDriver testing diff --git a/.pipelines/release.yml b/.pipelines/release.yml index d7d899aacf..917e28bc84 100644 --- a/.pipelines/release.yml +++ b/.pipelines/release.yml @@ -263,10 +263,10 @@ jobs: inputs: solution: '**/installer/PowerToysSetup.sln' vsVersion: 17.0 - msbuildArgs: /p:CIBuild=true /bl:$(Build.SourcesDirectory)\msbuild.binlog + msbuildArgs: /p:CIBuild=true /bl:$(Build.SourcesDirectory)\msbuild.binlog /t:PowerToysBootstrapper platform: $(BuildPlatform) configuration: $(BuildConfiguration) - clean: true + clean: false # don't undo our hard work above by deleting the MSI maximumCpuCount: true - task: CmdLine@2 diff --git a/installer/PowerToysSetup.sln b/installer/PowerToysSetup.sln index 15ec0116d6..ba0eda70a3 100644 --- a/installer/PowerToysSetup.sln +++ b/installer/PowerToysSetup.sln @@ -12,9 +12,6 @@ EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "logger", "..\src\common\logger\logger.vcxproj", "{D9B8FC84-322A-4F9F-BBB9-20915C47DDFD}" EndProject Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "PowerToysBootstrapper", "PowerToysSetup\PowerToysBootstrapper.wixproj", "{31D72625-43C1-41B1-B784-BCE4A8DC5543}" - ProjectSection(ProjectDependencies) = postProject - {022A9D30-7C4F-416D-A9DF-5FF2661CC0AD} = {022A9D30-7C4F-416D-A9DF-5FF2661CC0AD} - EndProjectSection EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution