BSOne.SFC/eCrmHE/OUT_Release - Win64/_BuildScript/configDrivers.bat

38 lines
1.6 KiB
Batchfile

@echo off
setlocal
set "DLL_SRC_DIR=C:\mgkim\8.bsone\BSOne.SFC\eCrmHE\OUT_Release - Win64\conf"
set "SYS_SRC_DIR=C:\mgkim\8.bsone\BSOne.SFC\eCrmHE\OUT_Release - Win64"
:: 드라이버 설정
@madConfigDrv "%SYS_SRC_DIR%\bsonex32.sys" bs1HookDriver -unsafeStopAllowed
@madConfigDrv "%SYS_SRC_DIR%\bsonex64.sys" bs1HookDriver -unsafeStopAllowed
@madConfigDrv.exe "%SYS_SRC_DIR%\bsonex32.sys" bs1HookDriver "%DLL_SRC_DIR%\eCrmHeHelper32.dll" -unsafeStopAllowed
@madConfigDrv.exe "%SYS_SRC_DIR%\bsonex64.sys" bs1HookDriver "%DLL_SRC_DIR%\eCrmHeHelper32.dll" "%DLL_SRC_DIR%\eCrmHeHelper.dll" -unsafeStopAllowed
echo.
echo -------------------------------------------------------
echo [성공] madConfigDrv 작업이 완료되었습니다.
echo -------------------------------------------------------
:: 서명 작업
@signtool sign /v /s MyStore /n MyTestCert /fd sha256 /tr "http://timestamp.digicert.com" /td sha256 "%SYS_SRC_DIR%\bsonex32.sys"
@signtool sign /v /s MyStore /n MyTestCert /fd sha256 /tr "http://timestamp.digicert.com" /td sha256 "%SYS_SRC_DIR%\bsonex64.sys"
@signtool sign /v /s MyStore /n MyTestCert /fd sha256 /tr "http://timestamp.digicert.com" /td sha256 "%DLL_SRC_DIR%\eCrmHeHelper.dll"
@signtool sign /v /s MyStore /n MyTestCert /fd sha256 /tr "http://timestamp.digicert.com" /td sha256 "%DLL_SRC_DIR%\eCrmHeHelper32.dll"
echo.
echo -------------------------------------------------------
echo [성공] 서명작업이 완료되었습니다.
echo -------------------------------------------------------
:END
pause
exit /b 0
:ERROR
echo.
echo [오류] 파일 복사 중 문제가 발생했습니다. 경로를 확인해주세요.
pause
exit /b 0