Created
April 21, 2014 16:30
-
-
Save Varriount/11147952 to your computer and use it in GitHub Desktop.
Batch file to generate 64 bit Nimrod installer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| robocopy .\Nimrod .\64\Nimrod /MIR /XD ".git" /XF "*.dll" ".gitignore" > NUL | |
| robocopy .\babel .\64\Nimrod\dist\babel /MIR /XD ".git" /XF "*.dll" ".gitignore" > NUL | |
| robocopy .\64\dlls\ .\64\Nimrod\bin | |
| cd .\64\nimrod\ | |
| nimrod --verbosity:0 c -d:release koch.nim | |
| koch boot -d:release --stacktrace:on | |
| .\bin\nimrod.exe --verbosity:0 c -d:release .\compiler\c2nim\c2nim.nim | |
| robocopy .\compiler\c2nim\ .\bin\ c2nim.exe /NJH /NFl /NDL /MOV | |
| .\bin\nimrod.exe --verbosity:0 c -d:release .\compiler\pas2nim\pas2nim.nim | |
| robocopy .\compiler\pas2nim\ .\bin\ pas2nim.exe /NJH /NFl /NDL /MOV | |
| .\bin\nimrod.exe --verbosity:0 c -d:release .\tools\cmerge.nim | |
| robocopy .\tools\ .\bin\ cmerge.exe /NJH /NFl /NDL /MOV | |
| .\bin\nimrod.exe --verbosity:0 c -d:release .\tools\nimgrep.nim | |
| robocopy .\tools\ .\bin\ nimgrep.exe /NJH /NFl /NDL /MOV | |
| .\bin\nimrod.exe --verbosity:0 c -d:release .\dist\babel\src\babel.nim | |
| robocopy .\dist\babel\src\ .\bin\ babel.exe /NJH /NFl /NDL /MOV | |
| .\bin\nimrod.exe --verbosity:0 c -d:release .\tools\niminst\niminst.nim | |
| rem Clean up | |
| ../../trimCache.exe | |
| for %%p in (.\compiler\nimrod*.exe) do (erase %%p) | |
| rem Generate the slim distributions | |
| rem Generate Installer | |
| .\tools\niminst\niminst.exe -o:"installer" --var:version=0.9.4 inno .\compiler\nimrod.ini | |
| rename .\installer\Nimrod_0.9.4.exe Nimrod_0.9.4-x64-slim.exe | |
| robocopy .\installer ..\ /MOV | |
| erase installer-slim | |
| rem Generate 7z and zip | |
| 7z a -t7z "..\Nimrod_0.9.4-x64-slim.7z" "..\Nimrod" | |
| 7z a -tzip "..\Nimrod_0.9.4-x64-slim.zip" "..\Nimrod" | |
| rem Add Mingw | |
| robocopy ..\mingw .\dist\mingw /MIR | |
| rem Generate the full distributions | |
| rem Generate Installer | |
| .\tools\niminst\niminst.exe -o:"installer" --var:version=0.9.4 inno .\compiler\nimrod.ini | |
| rename .\installer\Nimrod_0.9.4.exe Nimrod_0.9.4-x64-full.exe | |
| robocopy .\installer ..\ /MOV | |
| erase installer-slim | |
| rem Generate 7z and zip | |
| 7z a -t7z "..\Nimrod_0.9.4-x64-full.7z" "..\Nimrod" | |
| 7z a -tzip "..\Nimrod_0.9.4-x64-full.zip" "..\Nimrod" | |
| cd ../.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment