Skip to content

Commit bb5e959

Browse files
jshigetomiJustin Chung
andauthored
Add Windows Store Signing to MSIX bundle (PowerShell#25296)
Co-authored-by: Justin Chung <[email protected]>
1 parent 9c7c10b commit bb5e959

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.pipelines/PowerShell-Release-Official.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ variables:
5858
- name: ReleaseTagVar
5959
value: ${{ parameters.ReleaseTagVar }}
6060
- group: PoolNames
61+
- group: MSIXSigningProfile
6162

6263
resources:
6364
repositories:

.pipelines/templates/release-create-msix.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,24 @@ jobs:
7575
displayName: Create MsixBundle
7676
retryCountOnTaskFailure: 1
7777
78+
- task: onebranch.pipeline.signing@1
79+
displayName: Sign MsixBundle
80+
inputs:
81+
command: 'sign'
82+
signing_profile: $(MSIXProfile)
83+
files_to_sign: '**/*.msixbundle'
84+
search_root: '$(BundleDir)'
85+
86+
- pwsh: |
87+
$signedBundle = Get-ChildItem -Path $(BundleDir) -Filter "*.msixbundle" -File
88+
Write-Verbose -Verbose "Signed bundle: $signedBundle"
89+
90+
Copy-Item -Path $signedBundle -Destination $(ob_outputDirectory) -Verbose
91+
92+
Write-Verbose -Verbose "Uploaded Bundle:"
93+
Get-ChildItem -Path $(ob_outputDirectory) | Write-Verbose -Verbose
94+
displayName: Upload msixbundle to Artifacts
95+
7896
- task: AzurePowerShell@5
7997
displayName: Upload msix to blob
8098
inputs:

0 commit comments

Comments
 (0)