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

Install Perl on Windows via WinGet #4348

Merged
merged 3 commits into from
Jun 14, 2024
Merged
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
11 changes: 11 additions & 0 deletions scripts/prepare-machine.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ param (
[Parameter(Mandatory = $false)]
[switch]$InstallJom,

[Parameter(Mandatory = $false)]
[switch]$InstallPerl,

[Parameter(Mandatory = $false)]
[switch]$UseXdp,

Expand Down Expand Up @@ -340,6 +343,13 @@ function Install-OpenCppCoverage {
}
}

# Installs StrawberryPerl on Windows via Winget.
function Install-Perl {
if (!$IsWindows) { return } # Windows only
Write-Host "Installing StrawberryPerl via winget..."
winget install StrawberryPerl.StrawberryPerl
}

# Checks the OS version number to see if it's recent enough (> 2019) to support
# the necessary features for creating and installing the test certificates.
function Win-SupportsCerts {
Expand Down Expand Up @@ -499,6 +509,7 @@ if ($InstallXdpDriver) { Install-Xdp-Driver }
if ($UninstallXdp) { Uninstall-Xdp }
if ($InstallNasm) { Install-NASM }
if ($InstallJOM) { Install-JOM }
if ($InstallPerl) { Install-Perl }
if ($InstallCodeCoverage) { Install-OpenCppCoverage }
if ($InstallTestCertificates) { Install-TestCertificates }

Expand Down
Loading