-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.bat
34 lines (29 loc) · 1.13 KB
/
build.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
@ECHO OFF
if "%~1"=="" (
echo NO PARAM
EXIT /B 1
) else (
echo PARAM: %1
)
SET version=%1
BuildVersionHelper.exe %version%
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe"
SET targetDir="Releases\TerraMap-%version%\"
mkdir %targetDir%
copy "TerraMap\bin\Debug\CommandLine.dll" %targetDir%
copy "TerraMap\bin\Debug\Newtonsoft.Json.dll" %targetDir%
copy "TerraMap\bin\Debug\sets-default.xml" %targetDir%
copy "TerraMap\bin\Debug\TerraMap.Data.dll" %targetDir%
copy "TerraMap\bin\Debug\TerraMap.Data.pdb" %targetDir%
copy "TerraMap\bin\Debug\TerraMap.exe" %targetDir%
copy "TerraMap\bin\Debug\TerraMap.exe.config" %targetDir%
copy "TerraMap\bin\Debug\TerraMap.pdb" %targetDir%
copy "TerraMap\bin\Debug\TerraMapCmd.exe" %targetDir%
copy "TerraMap\bin\Debug\TerraMapCmd.pdb" %targetDir%
copy "TerraMap\bin\Debug\tiles.xml" %targetDir%
copy "TerraMap\bin\Debug\WPFExtensions.dll" %targetDir%
copy "TerraMap\bin\Debug\WriteableBitmapEx.Wpf.dll" %targetDir%
copy "TerraMap\bin\Debug\Xceed.Wpf.Toolkit.dll" %targetDir%
cd Releases
"C:\Program Files\7-Zip\7z.exe" a "TerraMap-%version%.zip" "TerraMap-%version%\"
cd ..