G-Node / gin-cli

Command line client for GIN
https://gin.g-node.org
Other
12 stars 6 forks source link

Less intrusive Windows paths #301

Closed achilleas-k closed 3 years ago

achilleas-k commented 3 years ago

Adding a new wrapper script for running gin commands on Windows.

The new script (gin.bat) acts as the main entrypoint for commands on Windows. It sets up a temporary (local) path where the gin-cli can find all necessary binaries (git, git-annex, etc.) and then runs the command with the user's arguments. If this script is in the user's %path%, the rest of the software doesn't need to be. The bundled binaries take precedence over any existing binaries with the same name in the %path% since the temporary paths are prepended before calling gin.exe.

The set-global.bat file has been adjusted to add only the path with the gin.bat in it. It also prompts the user to clean their path of any existing GIN CLI directories, if any are detected. This is better done manually, since parsing and editing the path is too error prone.

The PR also includes a small change to the configuration loading and small code quality improvements to the release script.

achilleas-k commented 3 years ago

Not sure what's up with macOS builds. Will investigate and get back to this later.