forked from DirectOutput/DirectOutput
-
Notifications
You must be signed in to change notification settings - Fork 0
/
betarelease.bat
48 lines (24 loc) · 1.31 KB
/
betarelease.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
rem if %1!==! goto exit
set BasePath=C:\Users\Tom\Documents\GitHub\DirectOutput
set DllPath=%BasePath%\B2SServerPlugin\bin\Debug\
set LedControlTesterPath=%BasePath%\LedControlFileTester\bin\Debug\
set DirectOutputConfigTesterPath=%BasePath%\DirectOutputConfigTester\bin\Debug\
set TempDate=%date%
set CurrDate=%TempDate:~6,4%-%TempDate:~3,2%-%TempDate:~0,2%
rem copy file.txt file-%currdate%.txt
tools\GetAssemblyVersion.exe tag "%DllPath%DirectOutput.dll" >temp.txt
set /p VersionTag=<temp.txt
"C:\Program Files (x86)\Git\bin\git.exe" tag -a %VersionTag% -m '%VersionTag%'
del Temp.txt
tools\GetAssemblyVersion.exe filename "%DllPath%DirectOutput.dll" >temp.txt
set /p FileNameVersion=<temp.txt
del Temp.txt
set Path=C:\Users\Tom\Google Drive\DirectOutput\DirectOutput Beta\DirectOutput Framework\%CurrDate%\
mkdir %Path%
set ZipName=DirectOutput %FileNameVersion%.zip
echo Will create %Path%%ZipName%
del "%Path%%ZipName%"
"C:\Program Files\7-Zip\7z.exe" a -tzip -x!B2SServerPluginInterface*.dll "%Path%%ZipName%" "%DllPath%*.dll"
"C:\Program Files\7-Zip\7z.exe" a -tzip "%Path%%ZipName%" "%LedControlTesterPath%LedControlFileTester.exe"
"C:\Program Files\7-Zip\7z.exe" a -tzip "%Path%%ZipName%" "%DirectOutputConfigTesterPath%DirectOutputConfigTester.exe"
:exit