Skip to content

Commit 75d6309

Browse files
authored
refactor(): use choco for perl (#39)
Install strawberryperl through chocolatey.
1 parent c5822b2 commit 75d6309

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

WebKitDev/Functions/Install-Perl.ps1

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ function Install-Perl {
2828
[string]$installationPath
2929
)
3030

31-
$url = ('http://strawberryperl.com/download/{0}/strawberry-perl-{0}-64bit.msi' -f $version);
32-
33-
$options = @();
31+
$installerOptions = @();
3432

3533
if ($installationPath) {
36-
$options += ('INSTALLDIR="{0}"' -f $installationPath);
34+
$installerOptions += ('INSTALLDIR="{0}"' -f $installationPath);
3735
}
3836

39-
Install-FromMsi -Name 'perl' -url $url -Options $options;
37+
Install-FromChoco `
38+
-Name 'strawberryperl' `
39+
-Version $version `
40+
-InstallerOptions $installerOptions `
41+
-VerifyExe 'perl';
4042
}

0 commit comments

Comments
 (0)