diff --git a/build.bat b/build.bat new file mode 100755 index 0000000000..5214944c09 --- /dev/null +++ b/build.bat @@ -0,0 +1,20 @@ + +if not exist "csources"( + git clone --depth 1 https://github.com/nim-lang/csources.git +) + +cd "csources" +if exist "C:\Program Files (x86)" ( + call build64.bat +) else ( + call build.bat +) + +cd ".." + +./bin/nim c koch +./koch boot -d:release + +xcopy /Y install.bat.template install.bat + +pause \ No newline at end of file diff --git a/install.bat.template b/install.bat.template new file mode 100755 index 0000000000..f49c898cc4 --- /dev/null +++ b/install.bat.template @@ -0,0 +1,6 @@ + +if not "%1"=="" ( + ./koch install %1 +) else ( + ./koch install +)