From 6896ef650e7feacf4275e8d67f23718877c38965 Mon Sep 17 00:00:00 2001 From: Ali Date: Mon, 25 May 2020 16:18:22 +0300 Subject: [PATCH] [ci skip] Updated installer to support powershell older than 3.0 --- utils/scripts/eqemu_server.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/scripts/eqemu_server.pl b/utils/scripts/eqemu_server.pl index 2b9bd4a7a..4c510ff9f 100755 --- a/utils/scripts/eqemu_server.pl +++ b/utils/scripts/eqemu_server.pl @@ -705,7 +705,7 @@ sub get_windows_wget { if (!-d "bin") { mkdir("bin"); } - `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"` + `powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/Akkadius/eqemu-install-v2/master/windows/wget.exe', 'bin\\wget.exe') "` } }