forked from dukus/digiCamControl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PostBuild64.Bat
58 lines (49 loc) · 1.61 KB
/
PostBuild64.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
52
53
54
55
56
57
58
REM %1 = Solution Directory
REM %2 = $(ConfigurationName) Debug/Release
echo.
echo PostBuild64.bat running...
echo Solution directory..... %1
echo Configuration name..... %2
echo.
rem copy commandline utility
echo Copying commandline utility from %1CameraControlCmd\Bin\%2\CameraControlCmd.exe...
copy %1CameraControlCmd\Bin\%2\CameraControlCmd.exe %1CameraControl\Bin\x64\%2\ /Y
if NOT [%errorlevel%] == [0] (
echo.
echo Error copying commandline utility from %1CameraControlCmd\Bin\%2\ to %1CameraControl\Bin\x64\%2\
echo.
GOTO :end
)
echo Copying updated additional Files from %1CameraControl.Application...
xcopy %1CameraControl.Application %1CameraControl\Bin\x64\%2\ /Y /E /R /I /D
if NOT [%errorlevel%] == [0] (
echo.
echo Error copying application from %1CameraControl.Application to %1CameraControl\Bin\x64\%2\
echo.
GOTO :end
)
echo.
echo Copying additional Files from %1CameraControl.Application\*.*...
xcopy %1CameraControl.Application\*.* %1CameraControl\Bin\x64\%2\ /Y
if NOT [%errorlevel%] == [0] (
echo.
echo Error copying application from %1CameraControl.Application\*.* %1CameraControl\Bin\x64\%2\
echo.
GOTO :end
)
IF NOT EXIST %1CameraControl\Bin\%2\Plugins (
echo.
echo Creating directory %1CameraControl\Bin\%2\Plugins
MD %1CameraControl\Bin\%2\Plugins
)
copy %1CameraControl.Plugins\Bin\x64\%2\CameraControl.Plugins.* %1CameraControl\Bin\x64\%2\Plugins\ /Y
if NOT [%errorlevel%] == [0] (
echo.
echo Error copying plugins from %1CameraControl.Plugins\Bin\x64\%2\CameraControl.Plugins.* to %1CameraControl\Bin\x64\%2\Plugins\
echo.
GOTO :end
)
pause
:end
echo.
echo ... PostBuild64 done