@@ -20,7 +20,7 @@ variables:
2020 buildPlatform : " x64"
2121
2222 # Docker image which is used to build the project
23- WindowsContainerImage : ' onebranch.azurecr.io/windows/ltsc2019 /vse2022:latest'
23+ WindowsContainerImage : ' onebranch.azurecr.io/windows/ltsc2022 /vse2022:latest'
2424
2525resources :
2626 repositories :
@@ -84,6 +84,15 @@ extends:
8484 ob_symbolsPublishing_enabled : true
8585
8686 steps :
87+ - task : PowerShell@2
88+ name : InspectSDKs
89+ displayName : ' Inspect installed UAP SDKs'
90+ inputs :
91+ targetType : inline
92+ script : |
93+ Write-Host "Installed Windows Kits:"
94+ Get-ChildItem 'C:\Program Files (x86)\Windows Kits\10\Platforms\UAP' -ErrorAction SilentlyContinue | Select Name
95+ Get-ChildItem 'C:\Program Files (x86)\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP' -ErrorAction SilentlyContinue | Select Name
8796 - task : PowerShell@2
8897 name : OutputVersionStep
8998 displayName : Set output variables for UpdateManifest job
@@ -225,40 +234,3 @@ extends:
225234 timeoutInMinutes : 1440 # task times out in 1 day
226235 inputs :
227236 instructions : " Please update aka.ms vanity URLs for latest release"
228-
229- - job : UpdateManifest
230- dependsOn :
231- - Build
232- - Wait
233- pool :
234- type : windows
235-
236- variables :
237- runCodesignValidationInjection : ${{ false }}
238- skipComponentGovernanceDetection : ${{ true }}
239- manifestVersion : $[dependencies.Build.outputs['OutputVersionStep.manifestVersion']]
240- appxBundleFile : $[dependencies.Build.outputs['OutputVersionStep.appxBundleFile']]
241- vcLibsBundleFile : " Microsoft.VCLibs.x64.14.00.Desktop.appx"
242- msixPackageUrl : " https://github.com/microsoft/winget-create/releases/download/v$(manifestVersion)/$(appxBundleFile)"
243- portablePackageUrl : " https://github.com/microsoft/winget-create/releases/download/v$(manifestVersion)/wingetcreate.exe"
244- ob_outputDirectory : $(Build.ArtifactStagingDirectory)
245- ob_git_checkout : false
246-
247- steps :
248- - task : PowerShell@2
249- displayName : Update package manifest in the OWC
250- inputs :
251- targetType : inline
252- script : |
253- # These are the steps you would run in your CI/CD pipeline to update your OWC manifest using wingetcreate.
254- # More information about using wingetcreate in your CI/CD pipeline can be found here:
255- # https://github.com/microsoft/winget-create#using-windows-package-manager-manifest-creator-in-a-cicd-pipeline
256-
257- # Download and install C++ Runtime framework package.
258- iwr https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile $(vcLibsBundleFile)
259- Add-AppxPackage $(vcLibsBundleFile)
260-
261- # Download, install, and execute update.
262- iwr https://aka.ms/wingetcreate/latest/msixbundle -OutFile $(appxBundleFile)
263- Add-AppxPackage $(appxBundleFile)
264- wingetcreate update Microsoft.WingetCreate --urls $(msixPackageUrl) '$(portablePackageUrl)|x64' '$(portablePackageUrl)|x86' -v $(manifestVersion) -t $(GITHUB_PAT) --submit
0 commit comments