-
- echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- echo SYS\OEM替换时请注意:请先删除要替换的相应目录后再复制进去!
- echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- echo
- pause >nul 2>nul
- echo 清空 temp 目录...
- rd /q /s temp >nul 2>nul
- echo 运行MyBuildOS...
- tools\MyBuildOS.exe >nul 2>nul
- echo 运行G'Reloc...
- TOOLS\G'Reloc.exe -doit -dump >nul 2>nul
- rem ↓↓↓↓↓保留DSM和RGU↓↓↓↓↓
- rem TOOLS\all_packages_to_one >nul 2>nul
- rem del buildpkg.wrn >nul 2>nul
- rem ↑↑↑↑↑保留DSM和RGU↑↑↑↑↑
- echo 复制OS.nb.payload...
- copy ROM\OS.nb.payload temp\OS.nb.payload >nul 2>nul
- cd temp
- echo 生成bin文件...
- ..\TOOLS\ImgfsFromNb OS.nb.payload imgfs.bin >nul 2>nul
- ..\TOOLS\ImgfsFromDump imgfs.bin imgfs-new.bin >nul 2>nul
- echo
- echo 制作原机ROM请:将备份的imgfs.bin文件(PART02)更名替换temp下的imgfs-new.bin文件
- pause
- echo 生成nb文件...
- ..\TOOLS\ImgfsToNb imgfs-new.bin os.nb.payload os-new.nb.payload >nul 2>nul
- ..\TOOLS\NBMerge -kaiser os-new.nb >nul 2>nul
- echo 生成nbh文件...
- CD..
- tools\htcrt.exe /buildrom "tools\Diamond.htcrtproj" "tools\ruu\ruu_signed.nbh"
- echo 开始运行刷机程序...
- echo
- TOOLS\ruu\DiamonCustomRUU.exe
- echo 全部程序运行完成,任意键关闭本窗口。
- pause >nul 2>nul
- exit
-
复制代码
echo 制作原机ROM请:将备份的imgfs.bin文件(PART02)更名替换temp下的imgfs-new.bin文件
pause
echo 生成nb文件...
这个地方的pause直接就过了。。。好几个批处理都这样。。。 |