diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index dcaca2d3..ea76c50e 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -53,9 +53,8 @@ jobs: go-version: 'stable' - name: Configure Environment - shell: pwsh + shell: powershell run: |- - w32tm /resync /nowait /rediscover echo "--------------------Install Microsoft.UI.Xaml-------------------" $SourceUrl = "https://www.nuget.org/api/v2/package/Microsoft.UI.Xaml/2.7.3" $DestinationFile = ".\microsoft.ui.xaml.2.7.3.zip" # 保存到当前目录并保持.nupkg扩展名 @@ -81,10 +80,7 @@ jobs: Invoke-WebRequest -Uri 'https://github.com/microsoft/winget-cli/releases/download/v1.6.3421/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle' -OutFile '.\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle' Add-AppxPackage .\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle Add-AppxProvisionedPackage -Online -Package .\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -LicensePath .\65f132d72c1d44518a19d1a9c3de8e1f_License1.xml - echo "------------------upgrade poweshell ----------------" - winget install --source winget --id Microsoft.PowerShell -e - echo "------------View powershell version number-----------" - $PSVersionTable.PSVersion + echo "---------------Install VisualStudio.2022---------------------- "