forked from cheshuai/Terminals
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDebug.bat
90 lines (75 loc) · 4.27 KB
/
Debug.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
@Echo off
rem Set the XulRunner runtime version (i.e. the Mozilla engine), ATTENTION: the SDK version won't work
set XULRUNNER=xulrunner-16.0.2.en-US.win32\xulrunner
set XULRUNNER=xulrunner-29.0.en-US.win32\xulrunner
rem Copy the Terminals updater to the build directory
copy "..\..\..\..\TerminalsUpdater\bin\Debug\TerminalsUpdater.exe" "TerminalsUpdater.exe" /Y > NUL
rem Copy SciLexer.dll and SciLexer64.dll from Scintilla to the Plugin directory.
copy "..\..\..\..\DLLs\ScintillaNET v2.5.2\SciLex*.dll" "Plugins\AutoIt\SciLex*.dll" /Y > NUL
rem Delete plugin files from the root of Terminals (files are intended for AutoIt plugin not for Terminals itself)
del /Q /F "Bug in Scintilla.pdf"
del /Q /F "CodeEditor.*"
del /Q /F "ScintillaNET.dll"
rem Copy AutoIt to Plugin directory
copy "..\..\..\..\DLLs\Tools\AutoIt\AutoIt3.exe" "Plugins\AutoIt\AutoIt3.exe" /Y > NUL
rem Copy the explorer browser to Terminals.exe directory
copy "..\..\..\..\Kohl.Explorer\bin\Debug\Kohl.Explorer.exe" "Kohl.Explorer.exe" /Y > NUL
del /Q /F /S "..\Distribution Debug\*.*" > NUL
rmdir /S /Q "..\Distribution Debug\" > NUL
mkdir "..\Distribution Debug\" > NUL
cls
echo Copying configuration files.
copy "Credentials.xml" "..\Distribution Debug\Credentials.xml" /Y > NUL
copy "Terminals.config" "..\Distribution Debug\Terminals.config" /Y > NUL
copy "Terminals.log4net.config" "..\Distribution Debug\Terminals.log4net.config" /Y > NUL
echo.
echo Copying Terminals.Configuration.dll & KeePassLib.dll.
copy "Terminals.Configuration.dll" "..\Distribution Debug\Terminals.Configuration.dll" /Y > NUL
copy "KeePassLib.dll" "..\Distribution Debug\KeePassLib.dll" /Y > NUL
echo Copying FireFox dependencies.
copy "..\..\..\..\DLLs\%XULRUNNER%\omni.ja" "omni.ja" /Y > NUL
copy "..\..\..\..\DLLs\%XULRUNNER%\plugin-container.exe" "plugin-container.exe" /Y > NUL
copy "..\..\..\..\DLLs\%XULRUNNER%\freebl3.dll" "freebl3.dll" /Y > NUL
copy "..\..\..\..\DLLs\%XULRUNNER%\gkmedias.dll" "gkmedias.dll" /Y > NUL
copy "..\..\..\..\DLLs\%XULRUNNER%\libEGL.dll" "libEGL.dll" /Y > NUL
copy "..\..\..\..\DLLs\%XULRUNNER%\libGLESv2.dll" "libGLESv2.dll" /Y > NUL
copy "..\..\..\..\DLLs\%XULRUNNER%\mozalloc.dll" "mozalloc.dll" /Y > NUL
copy "..\..\..\..\DLLs\%XULRUNNER%\mozglue.dll" "mozglue.dll" /Y > NUL
copy "..\..\..\..\DLLs\%XULRUNNER%\mozjs.dll" "mozjs.dll" /Y > NUL
copy "..\..\..\..\DLLs\%XULRUNNER%\nss3.dll" "nss3.dll" /Y > NUL
copy "..\..\..\..\DLLs\%XULRUNNER%\nssckbi.dll" "nssckbi.dll" /Y > NUL
copy "..\..\..\..\DLLs\%XULRUNNER%\nssdbm3.dll" "nssdbm3.dll" /Y > NUL
copy "..\..\..\..\DLLs\%XULRUNNER%\softokn3.dll" "softokn3.dll" /Y > NUL
copy "..\..\..\..\DLLs\%XULRUNNER%\xul.dll" "xul.dll" /Y > NUL
echo.
echo Copying Microsoft Virtual Machine Remote Control (VMRC) dependencies.
copy "..\..\..\..\DLLs\VMRC\*.dll" "*.dll" /Y > NUL
copy "..\..\..\..\DLLs\VMRC\RegisterVMRC.bat" "RegisterVMRC.bat" /Y > NUL
echo.
echo Copying Citrix dependencies.
copy "..\..\..\..\DLLs\Citrix\*.dll" "*.dll" /Y > NUL
echo.
echo Copy everything from the debug folder to the distribution folder.
copy "..\..\..\..\DLLs\Tools\Putty\putty.exe" "..\Distribution Debug\putty.exe" /Y > NUL
xcopy "..\..\..\..\DLLs\Tools\Radmin Viewer 3" "..\Distribution Debug\Radmin Viewer 3" /E /C /R /I /K /Y > NUL
copy "*.dll" "..\Distribution Debug\*.dll" /Y > NUL
copy "*.pak" "..\Distribution Debug\*.pak" /Y > NUL
copy "*.bat" "..\Distribution Debug\*.bat" /Y > NUL
copy "Terminals.exe" "..\Distribution Debug\Terminals.exe" /Y > NUL
copy "TerminalsUpdater.exe" "..\Distribution Debug\TerminalsUpdater.exe" /Y > NUL
copy "plugin-container.exe" "..\Distribution Debug\plugin-container.exe" /Y > NUL
copy "Kohl.Explorer.exe" "..\Distribution Debug\Kohl.Explorer.exe" /Y > NUL
copy "omni.ja" "..\Distribution Debug\omni.ja" /Y > NUL
echo. Copying plugins
xcopy "Plugins" "..\Distribution Debug\Plugins" /E /C /R /I /K /Y > NUL
del /Q /F "..\Distribution Debug\Plugins\FlickrNet.dll"
del /Q /F "..\Distribution Debug\Plugins\Kohl.*"
del /Q /F "..\Distribution Debug\Plugins\log4net.dll"
del /Q /F "..\Distribution Debug\Plugins\Terminals.Connection.dll"
del /Q /F "..\Distribution Debug\Plugins\Terminals.Connection.pdb"
del /Q /F "..\Distribution Debug\Plugins\Terminals.Configuration.dll"
echo.
echo Done
echo.
rem pause
exit 0;