-
Notifications
You must be signed in to change notification settings - Fork 1
/
create_release.bat
51 lines (43 loc) · 996 Bytes
/
create_release.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
47
48
49
50
51
@echo off
md rls
cls
echo Copying *.dll and Truice.exe
xcopy /O /K /R /Y /H /Q /I /C Truice.exe rls\Truice.exe > NUL
echo .. DONE
echo.
echo.
echo Copying CSV directory
rd /S /Q rls\CSV > NUL
echo ..
xcopy /O /K /R /Y /H /Q /I /C /E CSV rls\CSV > NUL
echo .. DONE
echo.
echo.
echo Copying LANG directory
rd /S /Q rls\LANG > NUL
echo ..
xcopy /O /K /R /Y /H /Q /I /C /E LANG rls\LANG > NUL
echo .. DONE
echo.
echo.
echo Everything should be ready for creating a 7z. Please press any key to start compressing.
pause
cls
echo Trying to locate 7-Zip..
FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKLM\Software\7-Zip" /v Path') DO SET Pfad=%%B
echo Found: %Pfad%
echo.
echo Getting revision id
FOR /F "tokens=1,* delims=+" %%I IN ('hg id -n') DO SET Rev=%%I
echo Revision id: %Rev%
echo.
pause
echo Starting compression
cd rls
del /F Truice_rev%Rev%.7z
"%Pfad%\7z" a -x!*.7z -y Truice_rev%Rev%.7z
echo All done!
echo.
echo ====== Truice_rev%Rev%.7z ======
pause
start explorer /root,%CD%