-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathmake_release.bat
39 lines (28 loc) · 995 Bytes
/
make_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
@echo off
cd ..
set solutionDir=%CD%
for /F "tokens=*" %%a in ('git describe --abbrev"="4') do call :MakeRelease "%%a"
goto :End
:MakeRelease
:: 32 bit portable
set fileName=airdcpp_%~1_x86.7z
cd installer
"%ProgramFiles%\7-Zip\7z.exe" a -t7z %solutionDir%\releases\%~1\%fileName% Web-resources EmoPacks Themes popup.bmp dcppboot.xml
cd ..
cd compiled\x86-release\windows
"%ProgramFiles%\7-Zip\7z.exe" a -t7z %solutionDir%\releases\%~1\%fileName% AirDC.exe AirDC.pdb Node.js
cd %solutionDir%
:: 64 bit portable
set fileName=airdcpp_%~1_x64.7z
cd installer
"%ProgramFiles%\7-Zip\7z.exe" a -t7z %solutionDir%\releases\%~1\%fileName% Web-resources EmoPacks Themes popup.bmp dcppboot.xml
cd ..
cd compiled\x64-release\windows
"%ProgramFiles%\7-Zip\7z.exe" a -t7z %solutionDir%\releases\%~1\%fileName% AirDC.exe AirDC.pdb Node.js
cd %solutionDir%
:: Installer
cd installer
"%ProgramFiles(x86)%\NSIS\makensis.exe" /DGIT_VERSION=%~1 AirDC_installscript.nsi
cd %solutionDir%
:End
timeout /t 3