ci: install vcredist2022 as 2019 has been removed

See this PR for details:
https://github.com/ScoopInstaller/Extras/pull/11357

Also check if `exras` bucket already exists.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-06-06 10:10:03 +02:00 committed by Jakub
parent 574300e6ac
commit ec2c6dd8ea
1 changed files with 5 additions and 3 deletions

View File

@ -15,13 +15,15 @@ function Install-Scoop {
# Install Git and other dependencies
function Install-Dependencies {
Write-Host "Installing dependencies..."
if (!(scoop bucket list | Where { $_.Name -eq "extras" })) {
scoop bucket add extras
}
scoop install --global go@1.20.4
scoop install --global vcredist2022
scoop install --global `
7zip git dos2unix findutils `
wget rcedit inno-setup `
make cmake gcc
scoop bucket add extras
scoop install --global vcredist2019
}
function Install-Qt-SDK {
@ -68,7 +70,7 @@ export VCINSTALLDIR="/c/BuildTools/VC"
You might also have to include the following paths in your `$PATH:
export PATH=`"/c/BuildTools/MSBuild/Current/Bin:`$PATH`"
export PATH=`"/c/BuildTools/VC/Tools/MSVC/14.27.29110/bin:`$PATH`"
export PATH=`"/c/BuildTools/VC/Tools/MSVC/14.29.30133/bin:`$PATH`"
export PATH=`"/c/ProgramData/scoop/apps/inno-setup/current:`$PATH`"
"@
}