diff options
Diffstat (limited to 'ci')
-rw-r--r-- | ci/deps.bat | 2 | ||||
-rw-r--r-- | ci/deps.sh | 2 | ||||
-rw-r--r-- | ci/nsis_build.bat | 34 |
3 files changed, 16 insertions, 22 deletions
diff --git a/ci/deps.bat b/ci/deps.bat index 477c70d1d..bda1fe14f 100644 --- a/ci/deps.bat +++ b/ci/deps.bat @@ -1,4 +1,4 @@ nim e install_nimble.nims nim e tests/test_nimscript.nims nimble update -nimble install -y zip opengl sdl1 jester niminst +nimble install -y zip opengl sdl1 jester@#head niminst diff --git a/ci/deps.sh b/ci/deps.sh index 50680e604..3385a213b 100644 --- a/ci/deps.sh +++ b/ci/deps.sh @@ -14,4 +14,4 @@ export PATH=$(pwd)/bin:$PATH nim e install_nimble.nims nim e tests/test_nimscript.nims nimble update -nimble install zip opengl sdl1 jester niminst +nimble install zip opengl sdl1 jester@#head niminst diff --git a/ci/nsis_build.bat b/ci/nsis_build.bat index 338a975d7..4e9d0d67c 100644 --- a/ci/nsis_build.bat +++ b/ci/nsis_build.bat @@ -21,15 +21,11 @@ cd web\upload move /y docs-%NIMVER%.zip download cd ..\.. -Rem Build .zip file: -rem koch csources -d:release -rem koch xz -d:release -rem move /y build\nim-%NIMVER%.zip web\upload\download - +Rem Build csources +koch csources -d:release || exit /b rem Grab C sources and nimsuggest git clone --depth 1 https://github.com/nim-lang/csources.git -git clone --depth 1 https://github.com/nim-lang/nimsuggest.git set PATH=%CD%\bin;%PATH% @@ -39,15 +35,15 @@ set PATH=C:\Users\araq\projects\mingw32\bin;%PATH% cd csources call build.bat cd .. -nim c koch || exit /b -koch boot -d:release || exit /b -cd nimsuggest -nim c -d:release --noNimblePath --path:.. nimsuggest || exit /b -copy /y nimsuggest.exe ..\bin || exit /b -cd .. -koch nsis -d:release || exit /b +ReM Rebuilding koch is necessary because it uses its pointer size to determine +ReM which mingw link to put in the NSIS installer. +nim c --out:koch_temp koch || exit /b +koch_temp boot -d:release || exit /b +koch_temp nsis -d:release || exit /b +koch_temp zip -d:release || exit /b dir build move /y build\nim_%NIMVER%.exe build\nim-%NIMVER%_x32.exe || exit /b +move /y build\nim-%NIMVER%.zip build\nim-%NIMVER%_x32.zip || exit /b ReM Build Win64 version: @@ -55,11 +51,9 @@ set PATH=C:\Users\araq\projects\mingw64\bin;%PATH% cd csources call build64.bat cd .. -nim c koch || exit /b -koch boot -d:release || exit /b -cd nimsuggest -nim c -d:release --noNimblePath --path:.. nimsuggest || exit /b -copy /y nimsuggest.exe ..\bin || exit /b -cd .. -koch nsis -d:release || exit /b +nim c --out:koch_temp koch || exit /b +koch_temp boot -d:release || exit /b +koch_temp nsis -d:release || exit /b +koch_temp zip -d:release || exit /b move /y build\nim_%NIMVER%.exe build\nim-%NIMVER%_x64.exe || exit /b +move /y build\nim-%NIMVER%.zip build\nim-%NIMVER%_x64.zip || exit /b |