nim-wiki/Creating-a-release.md

71 lines
1.7 KiB
Markdown
Raw Normal View History

2016-08-11 19:43:28 +00:00
- Run the full testsuite (``tests\testament\tester all``) and ensure it's green; actually ensure travis is green (Usually the case these days)
2015-10-30 13:52:26 +00:00
2016-08-11 19:43:28 +00:00
- Update news.txt
2015-10-30 13:52:26 +00:00
- write a news ticker entry
- Update the version
2015-10-30 14:08:47 +00:00
- In system.nim
- In compiler.nimble
2016-08-11 19:43:28 +00:00
- In lib/stdlib.nimble
2015-10-30 13:52:26 +00:00
- Recompile koch!
- Generate the full docs; koch web0
- Generate the installers
* koch csource -d:release
* koch xz
* koch nsis
2016-08-11 19:43:28 +00:00
- Test the installers: koch testinstall
2015-10-30 13:52:26 +00:00
- Tag the release
- Merge devel into master
- Update csources
2016-08-11 19:50:46 +00:00
To build the Windows release, currently this .bat file is used which is rather tied to my computer.
```
set NIMVER=0.14.2
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 Build Win32 version:
set PATH=C:\Users\Anwender\projects\nim\dist\mingw\bin;%PATH%
cd build
call build.bat
cd ..
nim c koch || exit /b
koch boot -d:release || exit /b
cd ..\nimsuggest
nim c -d:release --noNimblePath --path:..\nim nimsuggest || exit /b
copy /y nimsuggest.exe ..\nim\bin || exit /b
cd ..\nim
koch nsis -d:release || exit /b
move /y build\nim_%NIMVER%.exe web\upload\download\nim-%NIMVER%_x32.exe || exit /b
ReM Build Win64 version:
set PATH=C:\Users\Anwender\projects\win-builds\bin;%PATH%
cd build
call build64.bat
cd ..
nim c koch || exit /b
koch boot -d:release || exit /b
cd ..\nimsuggest
nim c -d:release --noNimblePath --path:..\nim nimsuggest || exit /b
copy /y nimsuggest.exe ..\nim\bin || exit /b
cd ..\nim
koch nsis -d:release || exit /b
move /y build\nim_%NIMVER%.exe web\upload\download\nim-%NIMVER%_x64.exe || exit /b
```