diff --git a/packer/scripts/windows/scoop-install-alpinewsl.ps1 b/packer/scripts/windows/scoop-install-alpinewsl.ps1 index dad434a8..206c2251 100644 --- a/packer/scripts/windows/scoop-install-alpinewsl.ps1 +++ b/packer/scripts/windows/scoop-install-alpinewsl.ps1 @@ -12,3 +12,6 @@ scoop config no_junction true # Install alpine scoop bucket add extras scoop install alpinewsl + +# Scoop clean cache +scoop cache rm --all diff --git a/packer/scripts/windows/scoop-install-commons.ps1 b/packer/scripts/windows/scoop-install-commons.ps1 index 01cda2af..b4a47f70 100644 --- a/packer/scripts/windows/scoop-install-commons.ps1 +++ b/packer/scripts/windows/scoop-install-commons.ps1 @@ -152,6 +152,17 @@ $userenv2 = [System.Environment]::GetEnvironmentVariable("Path", [System.Environ $nodePathFixed = "C:\\Users\\Administrator\\scoop\\persist\\volta\\appdata\\bin" [System.Environment]::SetEnvironmentVariable("PATH", $userenv2 + ";$nodePathFixed", [System.EnvironmentVariableTarget]::User) +# Install chromium (internally it is chrome.exe in app directory) +scoop install chromium +$chromiumName = 'chrome.exe' +$chromiumDir = 'C:\\Users\\Administrator\\scoop\\apps\\chromium' +$chromiumFound = (Get-ChildItem -Path $chromiumDir -Filter $chromiumName -Recurse | %{$_.FullName} | select -first 1) +$chromiumFound +$chromiumPathFound = $chromiumPathFound.replace("$chromiumName", '') +$chromiumPathFound +# Add BROWSER_PATH path to User Env Var for cypress test to retrieve chromium.exe path +[System.Environment]::SetEnvironmentVariable("BROWSER_PATH", "$chromiumPathFound", [System.EnvironmentVariableTarget]::User) + # Install ruby24 scoop install ruby24 ruby --version @@ -170,3 +181,7 @@ cmake --version # Install zip scoop install zip + +# Scoop clean cache +scoop cache rm --all +