Strawberry Perl OOB has issue with getstore so lets use something else [skip ci]

This commit is contained in:
Akkadius 2020-05-23 16:50:09 -05:00
parent b585d9b062
commit 86ef1b12e2

View File

@ -701,12 +701,11 @@ sub get_perl_version
}
sub get_windows_wget {
if (!-e "wget.exe" && $OS eq "Windows") {
eval "use LWP::Simple qw(getstore);";
if (!-e "bin/wget.exe" && $OS eq "Windows") {
if (!-d "bin") {
mkdir("bin");
}
getstore("https://raw.githubusercontent.com/Akkadius/eqemu-install-v2/master/windows/wget.exe", "bin/wget.exe");
`powershell -Command "\$ProgressPreference = 'SilentlyContinue'; Invoke-RestMethod -ContentType \"application/octet-stream\" -Uri https://raw.githubusercontent.com/Akkadius/eqemu-install-v2/master/windows/wget.exe -OutFile bin/wget.exe"`
}
}