Windows installation scripts

Description

There is no version of Clojure CLI's scripts for Windows. I developed them with Powershell. Scripts contain installation script as well. There are some changes though.

1. Windows doesn't contain tar tool, so the clojure-tools-$version.tar.gz has to be packed additionally with clojure-tools-$version.zip file.
2. I didn't find simple way for hashing with CRC32 with Powershell so it does use MD5 hashing function.
3. clj script just calls clojure script, because there was no need for rlwrap in Windows (at least Windows 10).
4. I've added additional .bat counterparts (clj.bat and clojure.bat) for compatibility with other tools like Emacs.

Environment

Windows

Attachments

10

Activity

Alex Miller April 12, 2019 at 10:03 PM

I'm going to call this "done" as far as it getting out to the world. Obviously more work to do, but that can be separate tickets as needed.

Alex Miller March 8, 2019 at 7:37 PM

Merged everything over and now building alpha versions.

See https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows for info.

Andrew Oberstar March 7, 2019 at 2:59 AM

Update the patch (0004-...patch) with the some additional fixes for parity with the Linux script. Still needs the exhaustive test of each option.

Andrew Oberstar March 7, 2019 at 1:23 AM

The real patch (0003-Install-on-Windows-as-a-PowerShell-Module.patch) for updating the Windows install setup. This one converts it to a PowerShell module, and the install script copies it out to the module path for installation (prompting for which location the user wants to use).

See the patch for additional detail, but this isn't "done" but it does provide some fixes and a working install script (as well as I could test it without the download piece in place). I plan to continue comparing the script to the linux one to deal with issues like the one Sean reported.

See also my temporary Git repo for the PowerShell module testing.

https://github.com/ajoberstar/ClojureTools

Andrew Oberstar March 7, 2019 at 1:21 AM

Minor patch (0002-Ensure-shell-files-are-checked-out-with-lf-endings.patch) to ensure shell files get checked out with lf bindings on windows.

Completed

Details

Assignee

Reporter

Priority

Created January 22, 2018 at 12:17 PM
Updated April 12, 2019 at 10:03 PM
Resolved April 12, 2019 at 10:03 PM