Re:D 2.093.0
by tastyminerals2 on Thursday July 16, 2020 @02:08PM
(#23861883)
There are dedicated installers for Windows if that is what you want: https://dlang.org/download.html
I never used the "install.sh" but just tried and since I have Windows git installed (which comes with MSYS2) it just worked without any issues.
Re:D 2.093.0
by johannes1234321 on Thursday July 16, 2020 @12:01PM
(#23860326)
> Someone would just need to reimplement the Bash script as a PowerShell script.
... and then maintain it.
Installing MSYS2 to run a bash script is like deploying an A-10 Warthog to light the fuse for one of those fountain fireworks.
There are much better ways to install things in windows. Such as MSI files if you need to change paths and registry entries. Chocolatey if you want a 'aptget' like usage, there are several of these types. Using bash to install something is unique. I personally am a fan of in place portable install, unzip, run exe, done.
Anyone who doesn't already have a bash environment installed on Windows isn't the target of install.sh.
Any bash environment on Windows will do. install.sh serves a specific use case for those who need it. It installs dmd in the user's home directory along with a script that enables/disables that specific version in the environment, so multiple dmd versions can be installed side-by-side, and the user can switch between versions as needed. It's a convenience script, more than anything else. More suited for people used to developing in Linux who need to work in Windows from time to time (with or without WSL) than regular Windows developers. The latter group will certainly prefer the Windows installer.
Re:D 2.093.0
by AnIdiotOnTheNet on Thursday July 16, 2020 @12:39PM
(#23860719)
> Assuming an MSYS2 installation is present in C:\msys64
Wow, really? Hardcoded paths in 2020?
> Assuming an MSYS2 installation is present in C:\msys64, necessary decompression tools can be installed from the Windows command prompt
Huh? I would think the whole point of running from command prompt would be that MSYS2 is not needed. And the reality is its probably not. Someone would just need to reimplement the Bash script as a PowerShell script.