For reference, here is my script
Code:
@BuildOS
@cls
@echo.
@echo Combining DSM Files into one
@Tools\all_packages_to_one
@echo Deleting rgu files
@del buildpkg.wrn
@echo Running G'Reloc
@del WMReloclog.txt
@Tools\WMReloc.exe -gtemp\dump -lWMReloclog.txt
@echo Rebuilding templates...
@mkdir .\Temp2
@cd .\Temp2
@..\Tools\imgfsfromnb.exe ..\ROM\os.nb.payload imgfs.old.bin
@echo .... Done.
@echo Building new imgfs.bin from dump...
@cd ..\Temp
@start /wait ..\Tools\imgfsfromdump.exe ..\Temp2\imgfs.old.bin ..\Temp2\imgfs.bin
@del ..\Temp2\imgfs.old.bin
@echo .... Done.
@echo Building OS-new.nb...
@cd ..\Temp2
@start /wait ..\Tools\imgfstonb.exe imgfs.bin ..\ROM\os.nb.payload OS.nb.payload -bigstoragemove
@del imgfs.bin
@start /wait ..\Tools\nbmerge.exe -kaiser OS.nb
@del OS.nb.payload
@ren OS.nb OS-new.nb
@cd ..
@mkdir .\Output
@move .\Temp2\OS-new.nb .\Output
@cd .\Output
@echo .... Done.
@echo Building RUU_signed.nbh...
@..\Tools\nbhgen.exe ..\Tools\victor_nbh.txt
@echo .... Done.
@echo Clean up time!
@cd ..
@rd /s /q .\Temp
@rd /s /q .\Temp2
@move .\Output\RUU_signed.nbh .\RUU
@rd /s /q .\Output
@echo .... Done.
@echo Flashing Rom
@pushd RUU
@ROMUpdateUtility.exe
@cls