-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.bat
37 lines (30 loc) · 828 Bytes
/
archive.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
@echo off
set RETAIL=1
rem *** set value ***
set arcname=runspx12.zip
set readme=runspx.txt
set srcname=runspxsrc.7z
rem *** main ***
rem WINCLOSE xxx
del /q *.zip 2> NUL
del /q *.7z 2> NUL
del /q *.obj 2> NUL
call m64 -DRELEASE
del /q *.obj 2> NUL
del /q *.res 2> NUL
call mvc -DRELEASE
del /q *.obj 2> NUL
del /q *.res 2> NUL
call marm64 -DRELEASE
for %%i in (*.exe) do tfilesign sp %%i %%i
for %%i in (*.exe) do CT %readme% %%i
rem *** Source Archive ***
if %RETAIL%==0 goto :skipsource
for %%i in (*) do CT %readme% %%i
ppb /c %%u/7-zip32.dll,a %srcname% -hide -mx=9 makefile *.vcproj *.sln *.def *.bat *.c *.cpp *.h *.rc *.rh
CT %readme% %srcname%
:skipsource
ppb /c %%u/7-ZIP32.DLL,a -tzip -hide -mx=7 %arcname% %readme% *.exe %srcname%
tfilesign s %arcname% %arcname%
CT %readme% %arcname%
del /q %srcname% 2> NUL