@echo off
\dev\tools\deltree /y d:\dev\temp\tmp_*.* >nul

ECHO Building non-compressed exe...
CD res
\dev\tools\gorc /r /ni /nw /fo \dev\temp\tmp_exe.res exe.rc
cd \dev\temp
start /w \dev\tools\runvb6w /make \dev\software\Projects\Calaym\Calaym.vbp /out \dev\temp
start /w \dev\tools\rhacker\rhacker.exe -delete tmp_cp.exe, tmp_exe1.exe,,,
start /w \dev\tools\rhacker\rhacker.exe -add tmp_exe1.exe, tmp_exe3.exe, tmp_exe.res,,,
\dev\tools\PostVFix.exe \dev\temp\tmp_exe3.exe \dev\temp\tmp_exe3.vfx
cd \dev\software\projects\calaym\setup
cd \dev\software\bin
copy /y \dev\temp\tmp_exe3.vfx Calaym.exe >NUL
echo Done.