mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 19:27:56 +01:00
* Update to WinAppSDK 1.7 latest version * Update UpdateVersions.ps1 Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com> Co-authored-by: Dustin L. Howett <dustin@howett.net> Co-authored-by: Shawn Yuan <128874481+shuaiyuanxx@users.noreply.github.com> Co-authored-by: Shawn Yuan <shuai.yuan.zju@gmail.com> Co-authored-by: Clint Rutkas <clint@rutkas.com>
57 lines
1.9 KiB
YAML
57 lines
1.9 KiB
YAML
parameters:
|
|
- name: versionNumber
|
|
type: string
|
|
default: 1.6
|
|
- name: useExperimentalVersion
|
|
type: boolean
|
|
default: false
|
|
|
|
steps:
|
|
- task: NuGetAuthenticate@1
|
|
displayName: 'NuGet Authenticate'
|
|
|
|
- task: PowerShell@2
|
|
displayName: Update WinAppSDK Versions
|
|
inputs:
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\UpdateVersions.ps1'
|
|
arguments: >
|
|
-winAppSdkVersionNumber ${{ parameters.versionNumber }}
|
|
-useExperimentalVersion $${{ parameters.useExperimentalVersion }}
|
|
-rootPath "$(build.sourcesdirectory)"
|
|
|
|
- script: echo $(WinAppSDKVersion)
|
|
displayName: 'Display WinAppSDK Version Found'
|
|
|
|
- task: DownloadPipelineArtifact@2
|
|
displayName: 'Download WindowsAppSDK'
|
|
inputs:
|
|
buildType: 'specific'
|
|
project: '55e8140e-57ac-4e5f-8f9c-c7c15b51929d'
|
|
definition: '104083'
|
|
buildVersionToDownload: 'latestFromBranch'
|
|
branchName: 'refs/heads/release/${{ parameters.versionNumber }}-stable'
|
|
artifactName: 'WindowsAppSDK_Nuget_And_MSIX'
|
|
targetPath: '$(Build.SourcesDirectory)\localpackages'
|
|
|
|
- script: dir $(Build.SourcesDirectory)\localpackages\NugetPackages
|
|
displayName: 'List downloaded packages'
|
|
|
|
- task: NuGetCommand@2
|
|
displayName: 'Install WindowsAppSDK'
|
|
inputs:
|
|
command: 'custom'
|
|
arguments: >
|
|
install "Microsoft.WindowsAppSDK"
|
|
-Source "$(Build.SourcesDirectory)\localpackages\NugetPackages"
|
|
-Version "$(WinAppSDKVersion)"
|
|
-OutputDirectory "$(Build.SourcesDirectory)\localpackages\output"
|
|
-FallbackSource "https://microsoft.pkgs.visualstudio.com/ProjectReunion/_packaging/Project.Reunion.nuget.internal/nuget/v3/index.json"
|
|
|
|
- task: NuGetCommand@2
|
|
displayName: 'Restore NuGet packages'
|
|
inputs:
|
|
command: 'restore'
|
|
feedsToUse: 'config'
|
|
nugetConfigPath: '$(build.sourcesdirectory)\nuget.config'
|
|
restoreSolution: '$(build.sourcesdirectory)\**\*.sln'
|
|
includeNuGetOrg: false |