Downloading Latest D Language DMD compiler via Windows 10 batch script file.

JN 666total at wp.pl
Thu Dec 19 09:43:17 UTC 2019


On Tuesday, 17 December 2019 at 18:32:30 UTC, H. S. Teoh wrote:
> 1) Have a fixed URL that never changes, that always points to 
> the latest
>    release. So your script doesn't have to figure out anything, 
> just
>    download from the fixed URL.
>
> 2) Use HTTP 307 to redirect the fixed URL to the actual URL, so 
> that the
>    downloaded filename will have the correct version embedded.
>
> 3) The script can parse the filename to figure out what the 
> version is.
>
>
> T

The most common way nowadays for installing compilers seems to be 
curl | sh solution. Languages such as Crystal, Rust and Nim are 
using it. For Windows equivalent PowerShell solution could be 
used.



More information about the Digitalmars-d mailing list