ev3dev.github.io icon indicating copy to clipboard operation
ev3dev.github.io copied to clipboard

Get publish script working on Windows

Open WasabiFan opened this issue 9 years ago • 3 comments

Currently, the publish.rb script doesn't work on Windows. As far as I can tell, this is just because of the eval()-ed grep call. If we can find an alternative way in native Ruby, that would make it much easier to publish from Windows

WasabiFan avatar Apr 28 '16 04:04 WasabiFan

Does it work in a git bash shell?

There is no guarantee that git will be in the PATH otherwise.

dlech avatar Apr 28 '16 16:04 dlech

Whoops, thought I had followed up here, but apparently not.

Yes, it works (ish) in Git Bash. It still throws some errors because of a permissions issue when deleting the temp directory that it creates. I want to fix that, but in addition it would be great to actually have it run natively instead of having to use that bash shell (which is a pain -- it's much harder to get to the directory you want in Git Bash than it is in a normal prompt). If that doesn't happen, at a minimum we'll need to document usage of the shell and execution of the publish script so that people can publish their changes for preview (and update the "publishing a project" tutorial in the process).

There is no guarantee that git will be in the PATH otherwise.

There isn't on any other system either; what makes Windows different?

WasabiFan avatar May 21 '16 05:05 WasabiFan

On Linux, it is pretty much guaranteed to be in the PATH (unless you are doing something highly unusual). On OS X, if you are using homebrew - which you probably are if you installed rbenv - which you probably did because jekyll won't work with the system version of ruby, it will be in the PATH.

You could also make a power shell script for Windows that does the same thing if that is easier.

dlech avatar May 21 '16 15:05 dlech