-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.bat
More file actions
57 lines (34 loc) · 716 Bytes
/
build.bat
File metadata and controls
57 lines (34 loc) · 716 Bytes
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
47
48
49
50
51
52
53
54
55
56
57
@echo off
taskkill /im screensnipper.exe /T /F
echo[
echo compiling resources...
echo *
rc .\resources.rc
echo *
echo resources compiled
echo[
echo building files ...
echo *
cl.exe /W0 /Zi /EHsc /I .\packages /nologo /Fe: .\ScreenSnipper.exe .\src\*.cpp /link /SUBSYSTEM:WINDOWS .\resources.res
@if ERRORLEVEL == 0 (
goto good
)
@if ERRORLEVEL != 0 (
goto bad
)
:good
echo *
echo build complete
echo[
echo attaching manafest ...
mt.exe -manifest .\ScreenSnipper.exe.manifest -outputresource:.\ScreenSnipper.exe;1
echo manafest attached
echo[
echo Copying to CODECARRIER...
xcopy .\ScreenSnipper.exe E:\ /Y /Q /S
echo copy complete
goto end
:bad
echo *
echo compile error. aborting.
:end