This commit is contained in:
Gator96100 2020-10-05 01:58:48 +02:00
parent 7959576996
commit b833ea5e75

View file

@ -152,10 +152,12 @@ clone_script:
Write-Host "ProxSpace: move cache..." -NoNewLine
Get-ChildItem C:\cache
Get-ChildItem "C:\cache"
Copy-Item -Path "C:\cache\*" -Destination "$env:proxspace_path\msys2\var\cache\pacman\pkg" -Recurse -Force -ErrorAction SilentlyContinue
Get-ChildItem "C:\cache"
Get-ChildItem $env:proxspace_path\msys2\var\cache\pacman\pkg
Write-Host "[ OK ]" -ForegroundColor Gree
@ -181,6 +183,8 @@ build_script:
$pmfolder = Split-Path $env:appveyor_build_folder -Leaf
Get-ChildItem "C:\cache"
Function ExecMinGWCmd($Cmd) {
cd $env:proxspace_path
./runme64.bat -c "cd $pmfolder && $Cmd"
@ -257,13 +261,17 @@ build_script:
Write-Host "ProxSpace: create new cache..." -NoNewLine
Get-ChildItem "$env:proxspace_path\msys2\var\cache\pacman\pkg\"
ExecMinGWCmd 'yes | pacman -Sc > /dev/null 2>&1'
Remove-Item -Recurse -Force -Path "C:\cache\*" -ErrorAction SilentlyContinue
Copy-Item -Path "$env:proxspace_path\msys2\var\cache\pacman\pkg\*" -Destination "C:\cache" -Recurse -Force
Get-ChildItem C:\cache
Get-ChildItem "C:\cache"
Get-ChildItem "$env:proxspace_path\msys2\var\cache\pacman\pkg\"
Write-Host "[ OK ]" -ForegroundColor Gree