Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NodeJS Upgrade] Add chromium installation to the windows ami #293

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packer/scripts/windows/scoop-install-alpinewsl.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
15 changes: 15 additions & 0 deletions packer/scripts/windows/scoop-install-commons.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -170,3 +181,7 @@ cmake --version

# Install zip
scoop install zip

# Scoop clean cache
scoop cache rm --all