Nim/ci/nsis_build.bat
Dominik Picheta b790159bb9 CI: NSIS fixes and temporary removal of Linux builds.
Squashed commit of the following:

commit af422c72ccd31054ecb097313275e538c2c8f1ad
Author: Dominik Picheta <dominikpicheta@gmail.com>
Date:   Thu Sep 29 00:42:39 2016 +0200

    CI: Another attempt.

commit f187712192bf80394d0efd7e8ebfcdc07a13ca5a
Author: Dominik Picheta <dominikpicheta@gmail.com>
Date:   Thu Sep 29 00:32:53 2016 +0200

    CI: Remove building of docs before NSIS build.

commit 92abf82d9400ff7f03d7fbfdaaeeb2ee93e803a5
Author: Dominik Picheta <dominikpicheta@gmail.com>
Date:   Thu Sep 29 00:18:24 2016 +0200

    CI: Attempt to fix incorrect mingw arch.

commit 2ec54f89f9725208559f2080dd0f1533b9ae27e0
Author: Dominik Picheta <dominikpicheta@gmail.com>
Date:   Wed Sep 28 23:40:51 2016 +0200

    CI: Rebuild koch so that correct mingw links are put in NSIS.

commit 3118f0fea6fb8d7178e9267d3bf198b4784cb247
Author: Dominik Picheta <dominikpicheta@gmail.com>
Date:   Wed Sep 28 22:36:40 2016 +0200

    CI: Fixes ci

commit fc4d14aa325dc1a95cf63092b209b919df450dcd
Author: Dominik Picheta <dominikpicheta@gmail.com>
Date:   Wed Sep 28 22:35:00 2016 +0200

    CI: Disable linux for now.
2016-09-29 01:19:43 +02:00

58 lines
1.5 KiB
Batchfile

REM - Run the full testsuite; tests\testament\tester all
REM - Uncomment the list of changes in news.txt
REM - write a news ticker entry
REM - Update the version
REM - Generate the full docs; koch web0
REM - Generate the installers;
REM - Update the version in system.nim
REM - Test the installers
REM - Tag the release
REM - Merge devel into master
REM - Update csources
set NIMVER=%1
Rem Build -docs file:
koch web0
cd web\upload
7z a -tzip docs-%NIMVER%.zip *.html
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 Grab C sources and nimsuggest
git clone --depth 1 https://github.com/nim-lang/csources.git
set PATH=%CD%\bin;%PATH%
ReM Build Win32 version:
set PATH=C:\Users\araq\projects\mingw32\bin;%PATH%
cd csources
call build.bat
cd ..
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
dir build
move /y build\nim_%NIMVER%.exe build\nim-%NIMVER%_x32.exe || exit /b
ReM Build Win64 version:
set PATH=C:\Users\araq\projects\mingw64\bin;%PATH%
cd csources
call build64.bat
cd ..
nim c --out:koch_temp koch || exit /b
koch_temp boot -d:release || exit /b
koch_temp nsis -d:release || exit /b
move /y build\nim_%NIMVER%.exe build\nim-%NIMVER%_x64.exe || exit /b