Merge branch 'BuildOnWindows'

This commit is contained in:
Erik Simmler 2017-10-10 22:04:44 -04:00
commit 56a653c045
2 changed files with 10 additions and 3 deletions

1
.gitattributes vendored Normal file
View file

@ -0,0 +1 @@
* text=auto

View file

@ -8,12 +8,18 @@ case $(uname) in
echo "linux";;
(Windows*)
echo "windows";;
(MINGW*)
echo "windows";;
(*)
echo "linux";;
esac)
if [ "$OS" == "windows" ]; then
URL=https://github.com/avh4/elm-format/releases/download/0.6.1-alpha/elm-format-0.18-0.6.1-alpha-win-i386.zip
curl -L $URL | funzip > bin/elm-format
else
URL=https://github.com/avh4/elm-format/releases/download/0.6.1-alpha/elm-format-0.18-0.6.1-alpha-$OS-x64.tgz
curl -L $URL | tar -xvzO > bin/elm-format
fi
chmod u+x bin/elm-format