forked from cheat-engine/cheat-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathces.bat
46 lines (29 loc) · 1.14 KB
/
ces.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@echo off
command /C echo changing to dos-16 file structure
set C_DEFINES=
set copycmd=/Y
copy sources.cesigned sources
build -cZ
if %ERRORLEVEL%==0 goto success
goto error
:success
if "%AMD64%"=="1" goto x86success
copy .\obj%BUILD_ALT_DIR%\i386\dbk.sys "..\Cheat Engine\bin\dbk32.sys"
signtool sign /ac "..\cheat engine\release\sig\GlobalSign Root CA.crt" /n "Cheat Engine" /t http://timestamp.globalsign.com/scripts/timstamp.dll "..\Cheat Engine\bin\dbk32.sys"
goto successend
:x86success:
copy .\obj%BUILD_ALT_DIR%\amd64\dbk.sys "..\Cheat Engine\bin\dbk64.sys"
signtool sign /ac "..\cheat engine\release\sig\GlobalSign Root CA.crt" /n "Cheat Engine" /t http://timestamp.globalsign.com/scripts/timstamp.dll "..\Cheat Engine\bin\dbk64.sys"
siggen\siggen.exe "..\Cheat Engine\bin\cheatengine-i386.exe"
siggen\siggen.exe "..\Cheat Engine\bin\cheatengine-x86_64.exe"
siggen\siggen.exe "..\Cheat Engine\bin\vmdisk.img"
goto successend
:error
echo.
echo error. Check the compile log
goto exit
:successend
echo.
echo done
if "%AMD64%"=="1" echo Please verify the file is signed
:exit