-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuildAndDeploy.bat
96 lines (67 loc) · 6.21 KB
/
BuildAndDeploy.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
91
92
93
94
95
96
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
IF %ERRORLEVEL% NEQ 0 goto End
if "%1"=="download" goto ParameterOK
if "%1"=="development" goto ParameterOK
if "%2" NEQ "" goto ParameterOK
goto ParameterRequired
:ParameterOK
msbuild "ESME WorkBench\ESME Workbench.csproj" /p:SolutionDir="%~dp0\Solutions\ESME Workbench\\";Configuration=Release;Platform=AnyCPU /t:Rebuild /v:normal
IF %ERRORLEVEL% NEQ 0 goto End
msbuild "TransmissionLossViewer\TransmissionLossViewer.csproj" /p:SolutionDir="%~dp0\Solutions\ESME Workbench\\";Configuration=Release;Platform=AnyCPU /t:Build /v:normal
IF %ERRORLEVEL% NEQ 0 goto End
msbuild "SimulationLogAnalysis\SimulationLogAnalysis.csproj" /p:SolutionDir="%~dp0\Solutions\ESME Workbench\\";Configuration=Release;Platform=AnyCPU /t:Build /v:normal
IF %ERRORLEVEL% NEQ 0 goto End
msbuild "Plugins\Environmental Data Sources\InstallableNAVO\InstallableNAVOPlugin.csproj" /p:SolutionDir="%~dp0\Solutions\ESME Workbench\\";Configuration=Release;Platform=AnyCPU /t:Rebuild /v:normal
IF %ERRORLEVEL% NEQ 0 goto End
msbuild "Plugins\Transmission Loss Calculators\StandardTransmissionLossEngines\StandardTransmissionLossEngines.csproj" /p:SolutionDir="%~dp0\Solutions\ESME Workbench\\";Configuration=Release;Platform=AnyCPU /t:Rebuild /v:normal
IF %ERRORLEVEL% NEQ 0 goto End
msbuild "Installers\ManagedBootstrapper\Managed Bootstrapper.csproj" /p:SolutionDir="%~dp0\Solutions\ESME Workbench\\";Configuration=Release;Platform=AnyCPU /t:Rebuild /v:normal
IF %ERRORLEVEL% NEQ 0 goto End
set DownloadURLRoot=http://esme.bu.edu/%1
set ESMERoot=%~dp0
set SpeciesDefinitionFilesFolder=%ESMERoot%Utilities\3MB\Species Files
msbuild "Installers\MSI Packages\Plugins\Environmental Databases\InstallableNAVO\InstallableNAVOPlugin MSI.wixproj" /p:SolutionDir="%~dp0\Solutions\ESME Workbench\\";Configuration=Release;Platform="x64" /t:Rebuild /v:normal /p:DefineConstants="ESMERoot=%ESMERoot% "
IF %ERRORLEVEL% NEQ 0 goto End
msbuild "Installers\MSI Packages\Plugins\Environmental Databases\InstallableNAVO\InstallableNAVOPlugin MSI.wixproj" /p:SolutionDir="%~dp0\Solutions\ESME Workbench\\";Configuration=Release;Platform="x86" /t:Rebuild /v:normal /p:DefineConstants="ESMERoot=%ESMERoot% "
IF %ERRORLEVEL% NEQ 0 goto End
msbuild "Installers\MSI Packages\ESME Application MSI\ESME Application MSI.wixproj" /p:SolutionDir="%~dp0\Solutions\ESME Workbench\\";Configuration=Release;Platform="x64" /t:Rebuild /v:normal /p:DefineConstants="ESMERoot=%ESMERoot%;SpeciesDefinitionFilesFolder=%SpeciesDefinitionFilesFolder% "
IF %ERRORLEVEL% NEQ 0 goto End
msbuild "Installers\MSI Packages\ESME Application MSI\ESME Application MSI.wixproj" /p:SolutionDir="%~dp0\Solutions\ESME Workbench\\";Configuration=Release;Platform="x86" /t:Rebuild /v:normal /p:DefineConstants="ESMERoot=%ESMERoot%;SpeciesDefinitionFilesFolder=%SpeciesDefinitionFilesFolder% "
IF %ERRORLEVEL% NEQ 0 goto End
msbuild "Installers\EXE Packages\ESME Application\ESME Application.wixproj" /p:SolutionDir="%~dp0\Solutions\ESME Workbench\\";Configuration=Release;Platform="x64" /t:Rebuild /v:normal /p:DefineConstants="DownloadURLRoot=%DownloadURLRoot%;ESMERoot=%ESMERoot% "
IF %ERRORLEVEL% NEQ 0 goto End
msbuild "Installers\EXE Packages\ESME Application\ESME Application.wixproj" /p:SolutionDir="%~dp0\Solutions\ESME Workbench\\";Configuration=Release;Platform="x86" /t:Rebuild /v:normal /p:DefineConstants="DownloadURLRoot=%DownloadURLRoot%;ESMERoot=%ESMERoot% "
IF %ERRORLEVEL% NEQ 0 goto End
msbuild "Installers\EXE Packages\ESME Application and Databases\ESME Application and Databases.wixproj" /p:SolutionDir="%~dp0\Solutions\ESME Workbench\\";Configuration=Release;Platform="x64" /t:Rebuild /v:normal /p:DefineConstants="DownloadURLRoot=%DownloadURLRoot%;ESMERoot=%ESMERoot% "
IF %ERRORLEVEL% NEQ 0 goto End
msbuild "Installers\EXE Packages\ESME Application and Databases\ESME Application and Databases.wixproj" /p:SolutionDir="%~dp0\Solutions\ESME Workbench\\";Configuration=Release;Platform="x86" /t:Rebuild /v:normal /p:DefineConstants="DownloadURLRoot=%DownloadURLRoot%;ESMERoot=%ESMERoot% "
IF %ERRORLEVEL% NEQ 0 goto End
msbuild "Installers\EXE Packages\ESME Databases\ESME Databases.wixproj" /p:SolutionDir="%~dp0\Solutions\ESME Workbench\\";Configuration=Release;Platform="x86" /t:Rebuild /v:normal /p:DefineConstants="DownloadURLRoot=%DownloadURLRoot%;ESMERoot=%ESMERoot% "
IF %ERRORLEVEL% NEQ 0 goto End
copy /y "Installers\MSI Packages\ESME Application MSI\msi\*.msi" "\\earlab.bu.edu\c$\Inetpub\wwwroot\ESME\%1"
IF %ERRORLEVEL% NEQ 0 goto End
copy /y "Installers\MSI Packages\Plugins\Environmental Databases\InstallableNAVO\msi\*.msi" "\\earlab.bu.edu\c$\Inetpub\wwwroot\ESME\%1"
IF %ERRORLEVEL% NEQ 0 goto End
copy /y "Installers\EXE Packages\ESME Application\msi\*.exe" "\\earlab.bu.edu\c$\Inetpub\wwwroot\ESME\%1"
IF %ERRORLEVEL% NEQ 0 goto End
copy /y "Installers\EXE Packages\ESME Application and Databases\msi\*.exe" "\\earlab.bu.edu\c$\Inetpub\wwwroot\ESME\%1"
IF %ERRORLEVEL% NEQ 0 goto End
copy /y "Installers\EXE Packages\ESME Databases\msi\*.exe" "\\earlab.bu.edu\c$\Inetpub\wwwroot\ESME\%1"
IF %ERRORLEVEL% NEQ 0 goto End
mkdir "\\earlab.bu.edu\c$\Inetpub\wwwroot\ESME\%1\versions\%2"
IF %ERRORLEVEL% NEQ 0 goto End
copy /y "Installers\MSI Packages\ESME Application MSI\msi\*.msi" "\\earlab.bu.edu\c$\Inetpub\wwwroot\ESME\%1\versions\%2"
IF %ERRORLEVEL% NEQ 0 goto End
copy /y "Installers\MSI Packages\Plugins\Environmental Databases\InstallableNAVO\msi\*.msi" "\\earlab.bu.edu\c$\Inetpub\wwwroot\ESME\%1\versions\%2"
IF %ERRORLEVEL% NEQ 0 goto End
copy /y "Installers\EXE Packages\ESME Application\msi\*.exe" "\\earlab.bu.edu\c$\Inetpub\wwwroot\ESME\%1\versions\%2"
IF %ERRORLEVEL% NEQ 0 goto End
copy /y "Installers\EXE Packages\ESME Application and Databases\msi\*.exe" "\\earlab.bu.edu\c$\Inetpub\wwwroot\ESME\%1\versions\%2"
IF %ERRORLEVEL% NEQ 0 goto End
copy /y "Installers\EXE Packages\ESME Databases\msi\*.exe" "\\earlab.bu.edu\c$\Inetpub\wwwroot\ESME\%1\versions\%2"
IF %ERRORLEVEL% NEQ 0 goto End
goto End
:ParameterRequired
echo This script requires two parameters, the first of which must be either 'development' or 'download'
echo the second parameter must be the current version number
:End