-
Notifications
You must be signed in to change notification settings - Fork 186
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
Use curl instead of iwr on Windows #153
Comments
Download latest Deno version using
Explanation:
Note that, in order to run this batch script from a curl -O https://deno.land/x/install/install.cmd & install & del install.cmd e.g. download a temp file, run it, delete it. As far as I know, there's no PS: If anyone reading this is interested in using |
On yet another random note, there's the possibility to write the Deno installer for Windows in JavaScript, uh, JScript, which is installed on Windows by default as part of the Windows Script Host:
|
Download, extract, and run latest Deno version in one line of batch:
|
Closing in favor of #154. |
Since early 2018,
curl
is available as%SystemRoot%\System32\curl.exe
on Windows (see: https://devblogs.microsoft.com/commandline/tar-and-curl-come-to-windows/). So instead ofInvoke-WebRequest
we could usecurl
some day in the future, once we decide to no longer support older Windows versions.This would allow us to harmonize the output of the Shell and the PowerShell installer.
On a side note, this may allow us to drop the requirement of
powershell.exe
in favor ofcmd.exe
: The main reason thatpowershell.exe
is used for our Windows installer rather thancmd
is thatcmd
has no built-in utilities for making HTTP requests and no utilities for extracting archives (though, similar tocurl.exe
,tar.exe
is a built-in utility on Windows now, too).On yet another note,
curl
is a few seconds faster for downloading thedeno.zip
compared toiwr
from my limited testing.The text was updated successfully, but these errors were encountered: