forked from DigitalRune/DigitalRune
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild-Content-Debug.cmd
41 lines (28 loc) · 1 KB
/
Build-Content-Debug.cmd
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
@ECHO OFF
SETLOCAL
ECHO ----- Building DigitalRune.Graphics.Content...
:: Change working directory.
cd Source\DigitalRune.Graphics.Content
:: Build content with MonoGame Content Builder tool.
..\MonoGame\Tools\MGCB\bin\Windows\AnyCPU\Debug\MGCB.exe /@:DigitalRune.Graphics(DEBUG).mgcb || GOTO error
:: ZIP content.
..\..\Tools\Pack\bin\x64\Debug\Pack.exe --output bin\DigitalRune.zip --recursive --directory bin\Windows *.* || GOTO error
cd ..\..
ECHO.
ECHO ----- Building DigitalRune.Editor.Game.Content...
:: Change working directory.
cd Source\DigitalRune.Editor.Game.Content
:: Build content with MonoGame Content Builder tool.
..\MonoGame\Tools\MGCB\bin\Windows\AnyCPU\Debug\MGCB.exe /@:DigitalRune.Editor.Game-Debug.mgcb || GOTO error
:: ZIP content.
..\..\Tools\Pack\bin\x64\Debug\Pack.exe --output bin\DigitalRune.Editor.Game.zip --recursive --directory bin *.* || GOTO error
cd ..\..
ECHO.
ECHO SUCCESS - Content build successful.
PAUSE
EXIT
:error
ECHO.
ECHO ERROR - Content build failed.
PAUSE
EXIT /B 1