forked from lmintlcx/pvztoolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
83 lines (59 loc) · 1.68 KB
/
build.bat
File metadata and controls
83 lines (59 loc) · 1.68 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
@echo off
chcp 65001
if "%1" == "copy" (
goto :end
)
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
REM cd /d D:\repo\pvztoolkit
cd /d %~dp0
set INCLUDE=.\fltk\include;%INCLUDE%
set LIB=.\fltk\lib;%LIB%
set INCLUDE=.\zlib\include;%INCLUDE%
set LIB=.\zlib\lib;%LIB%
set INCLUDE=.\lua\include;%INCLUDE%
set LIB=.\lua\lib;%LIB%
if "%1" == "server" (
goto :server
)
if NOT "%1" == "debug" (
goto :release
)
:server
cl.exe /LD .\server\server.cpp ws2_32.lib /std:c++20 /EHsc /Febin\server.dll /Fo./out/
goto :end
:debug
if exist .\out\pvztoolkitd.exe del .\out\pvztoolkitd.exe
nmake -f makefile.debug
if not exist .\out\pvztoolkitd.exe goto :end
mt.exe -nologo ^
-manifest ".\res\ptk.manifest" ^
-outputresource:".\out\pvztoolkitd.exe;#1"
goto :end
:release
echo "release build"
nmake -f makefile.release clean
nmake -f makefile.release
if not exist .\out\pvztoolkit.exe goto :end
mt.exe -nologo ^
-manifest ".\res\ptk.manifest" ^
-outputresource:".\out\pvztoolkit.exe;#1"
goto :end
file="PvZ_Toolkit_v1.20.3.exe"
rm $file.hash
echo $file >> $file.hash
echo "MD5" >> $file.hash
md5sum $file | cut -d" " -f1 | tr [a-z] [A-Z] >> $file.hash
echo "SHA-1" >> $file.hash
sha1sum $file | cut -d" " -f1 | tr [a-z] [A-Z] >> $file.hash
echo "SHA-256" >> $file.hash
sha256sum $file | cut -d" " -f1 | tr [a-z] [A-Z] >> $file.hash
echo "SHA-512" >> $file.hash
sha512sum $file | cut -d" " -f1 | tr [a-z] [A-Z] >> $file.hash
gpg --armor --detach-sign $file
gpg --verify $file.asc $file
:end
copy /y bin\splash.png .\out
copy /y bin\lineup.yml .\out
copy /y bin\builds.yml .\out
copy /y bin\server.dll .\out
xcopy /y /i /e .\bin\script .\out\script