Skip to content

Commit 0482623

Browse files
committed
Add additional build and sign step for SilentFilesInUseBAFunction
1 parent 51aeaaf commit 0482623

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.pipelines/v2/templates/steps-build-installer-vnext.yml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,39 @@ steps:
132132
ciPolicyFile: '$(build.sourcesdirectory)\.pipelines\CIPolicy.xml'
133133

134134
#### END MSI
135+
136+
#### BUILDING AND SIGNING SilentFilesInUseBAFunction DLL
137+
- task: VSBuild@1
138+
displayName: ${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} Build SilentFilesInUseBAFunction
139+
inputs:
140+
solution: "**/installer/PowerToysSetup.sln"
141+
vsVersion: 17.0
142+
msbuildArgs: >-
143+
/t:SilentFilesInUseBAFunction
144+
/p:RunBuildEvents=true;PerUser=${{parameters.buildUserInstaller}};RestorePackagesConfig=true;CIBuild=true
145+
/p:InstallerSuffix=${{ parameters.installerSuffix }}
146+
-restore -graph
147+
/bl:$(LogOutputDirectory)\installer-$(InstallerBuildSlug)-SilentFilesInUseBAFunction.binlog
148+
${{ parameters.additionalBuildOptions }}
149+
platform: $(BuildPlatform)
150+
configuration: $(BuildConfiguration)
151+
clean: false # don't undo our hard work above by deleting the msi
152+
msbuildArchitecture: x64
153+
maximumCpuCount: true
154+
155+
- ${{ if eq(parameters.codeSign, true) }}:
156+
- template: steps-esrp-signing.yml
157+
parameters:
158+
displayName: ${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} Sign SilentFilesInUseBAFunction
159+
signingIdentity: ${{ parameters.signingIdentity }}
160+
inputs:
161+
FolderPath: 'installer/$(BuildPlatform)/$(BuildConfiguration)'
162+
signType: batchSigning
163+
batchSignPolicyFile: '$(build.sourcesdirectory)\.pipelines\ESRPSigning_installer.json'
164+
ciPolicyFile: '$(build.sourcesdirectory)\.pipelines\CIPolicy.xml'
165+
166+
#### END BUILDING AND SIGNING SilentFilesInUseBAFunction DLL
167+
135168
#### BOOTSTRAP BUILDING AND SIGNING
136169
- task: VSBuild@1
137170
displayName: ${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} Build VNext Bootstrapper
@@ -148,7 +181,7 @@ steps:
148181
${{ parameters.additionalBuildOptions }}
149182
platform: $(BuildPlatform)
150183
configuration: $(BuildConfiguration)
151-
clean: false # don't undo our hard work above by deleting the MSI
184+
clean: false # don't undo our hard work above by deleting the MSI nor SilentFilesInUseBAFunction
152185
msbuildArchitecture: x64
153186
maximumCpuCount: true
154187

installer/PowerToysSetupVNext/SilentFilesInUseBA/SilentFilesInUseBAFunction.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<ConfigurationType>DynamicLibrary</ConfigurationType>
2727
<CharacterSet>Unicode</CharacterSet>
2828
<TargetName>SilentFilesInUseBAFunction</TargetName>
29+
<ProjectName>PowerToysSetupCustomActionsVNext</ProjectName>
2930
<ProjectModuleDefinitionFile>bafunctions.def</ProjectModuleDefinitionFile>
3031
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
3132
</PropertyGroup>

0 commit comments

Comments
 (0)