-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild-jn.bat
221 lines (166 loc) · 10.6 KB
/
build-jn.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
@echo off
set IS_ELEVATED=0
setlocal EnableDelayedExpansion
net session >nul 2>&1
if %errorLevel% == 0 (
rem echo Success: Administrative permissions confirmed.
) else (
echo Failure: Current permissions inadequate. Run as administrator
pause
exit /b 1
)
FOR /F %%I IN ("%0") DO SET BATDIR=%%~dpI
CD /D %BATDIR%
@echo %BATDIR%
Set config=debug
set log=builder.log
set msbuildpath=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe
set msbuildpatha=C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe
@Echo Cleaning references folder
rmdir %BATDIR%\References /S /Q
mkdir References
@Echo Cleaning package folder
rmdir %BATDIR%\Package /S /Q
mkdir package
@Echo Cleaning Release folder
rmdir %BATDIR%\Release /S /Q
mkdir Release
@echo "Starting building in %config% mode"
@echo "Starting building in %config% mode devenv" > %log%
@echo "********** Building Entities **********" >> %log%
@echo ********** Building Entities **********
"%msbuildpath%" "%BATDIR%\Solutions\Entities\Entities.sln" /t:rebuild /p:Configuration=%config% >> %log%
@echo "********** Building Interface **********" >> %log%
@echo ********** Building Interface **********
"%msbuildpath%" "%BATDIR%\Solutions\Interfaces\Interfaces.sln" /t:rebuild /p:Configuration=%config% >> %log%
@echo "********** Building Application **********" >> %log%
@echo ********** Building Application **********
"%msbuildpath%" "%BATDIR%\Solutions\Application\Application.sln" /t:rebuild /p:Configuration=%config% >> %log%
@echo "********** Building DataAccess **********" >> %log%
@echo ********** Building DataAccess **********
"%msbuildpath%" "%BATDIR%\Solutions\DataAccess\DataAccess.sln" /t:rebuild /p:Configuration=%config% >> %log%
@echo "********** Building Businessprocess **********" >> %log%
@echo ********** Building Businessprocess **********
"%msbuildpath%" "%BATDIR%\Solutions\BusinessProcess\BusinessProcess.sln" /t:rebuild /p:Configuration=%config% >> %log%
echo "********** Building IQCare.Library **********" >> %log%
@echo ********** Building IQCare.Library **********
"%msbuildpath%" "%BATDIR%\Solutions\IQCare.Library\IQCare.Library.sln" /t:rebuild /p:Configuration=%config% >> %log%
echo "********** Building IQCare.Lookup **********" >> %log%
@echo ********** Building IQCare.Lookup **********
"%msbuildpath%" "%BATDIR%\Solutions\IQLookup\IQCare.Lookup.sln" /t:rebuild /p:Configuration=%config% >> %log%
echo "********** Building Presentation **********" >> %log%
@echo ********** Building Presentation **********
"%msbuildpath%" "%BATDIR%\Solutions\Presentation\Presentation.sln" /t:rebuild /p:Configuration=%config% >> %log%
echo "********** Building Billing **********" >> %log%
@echo ********** Building Billing **********
"%msbuildpath%" "%BATDIR%\Solutions\Billing\IQCare.Billing.sln" /t:rebuild /p:Configuration=%config% >> %log%
echo "********** Building IQCare.CCC **********" >> %log%
@echo ********** Building IQCare.CCC **********
"%msbuildpath%" "%BATDIR%\Solutions\IQCare.CCC\IQCare.CCC.sln" /t:rebuild /p:Configuration=%config% >> %log%
@echo ********** Building IQCare.PSmart **********
"%msbuildpath%" "%BATDIR%\Solutions\IQCare.PSmart\IQCare.PSmart.sln" /t:rebuild /p:Configuration=%config% >> %log%
@echo ********** Building IQCare.Web.Api **********
"%msbuildpath%" "%BATDIR%\Solutions\IQCare.Web.API\IQCare.Web.API.sln" /t:rebuild /p:Configuration=%config% >> %log%
if /I %config%== release (
echo "********** Building IQCare Service **********" >> %log%
@echo ********** Building IQCare Service **********
"%msbuildpatha%" "%BATDIR%\Solutions\IQCareService\IQCareService.sln" /t:rebuild /p:Configuration=%config% >> %log%
echo "********** Building IQCare Management **********" >> %log%
@echo ********** Building IQCare Management **********
"%msbuildpath%" "%BATDIR%\Solutions\IQCare Management\IQCare Management.sln" /t:rebuild /p:Configuration=%config% >> %log%
echo "********** Building IQCare.Release **********" >> %log%
@echo ********** Building IQCare.Release **********
"%msbuildpath%" "%BATDIR%\Solutions\IQCare.Release\IQCare.Release.sln" /t:rebuild /p:Configuration=%config% >> %log%
)
@echo "********** Completed building devenv**********" >> %log%
@echo ********** Completed building devenv**********
rem echo "********** Scripts **********" >> %log%
rem COPY %BATDIR%\Scripts\* %BATDIR%\Release\Scripts /s /i >nul
rem COPY %BATDIR%\batch.bat %BATDIR%\Release\batch.bat /Y > nul
@echo ********** END OF BUILINDING & PACKAGING **********
echo
xcopy /d %BATDIR%\References\ActiveDatabaseSoftware.ActiveQueryBuilder2.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%References\ActiveDatabaseSoftware.MSSQLMetadataProvider2.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\References\ActiveDatabaseSoftware.OLEDBMetadataProvider2.dll %BATDIR%package\web\bin
xcopy /d %BATDIR%\References\ActiveDatabaseSoftware.UniversalMetadataProvider2.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\References\ADODB.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\Ajax.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\References\AjaxControlToolkit.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\References\AutoMapper.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\CrystalDecisions.CrystalReports.Engine.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\CrystalDecisions.ReportSource.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\CrystalDecisions.Shared.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\CrystalDecisions.Web.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\itextsharp.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\References\log4net.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\References\Microsoft.Office.Interop.Owc11.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\Microsoft.Web.Infrastructure.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\References\MSDATASRC.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\References\netchartdir.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\References\Newtonsoft.Json.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\References\Sand.Security.Cryptography.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\References\stdole.dll %BATDIR%package\web\bin
xcopy /d %BATDIR%\Library\System.Net.Http.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\System.Net.Http.Formatting.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\System.Web.Helpers.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\System.Web.Http.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\System.Web.Http.WebHost.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\System.Web.Mvc.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\System.Web.Razor.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\System.Web.WebPages.Deployment.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\System.Web.WebPages.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\System.Web.WebPages.Razor.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\Telerik.Web.UI.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\EntityFramework.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\EntityFramework.SqlServer.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\ClosedXML.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\DocumentFormat.OpenXml.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\ExcelNumberFormat.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\FastMember.dll %BATDIR%\package\web\bin
xcopy /d %BATDIR%\Library\FastMember.Signed.dll %BATDIR%\package\web\bin
@echo ********** END OF COPYING DLLS **********
@echo "********** Building IQCare API **********" >> %log%
@echo ********** Building IQCare API **********
dotnet publish Solutions/IQCare.Core/IQCare/IQCare.csproj -o %BATDIR%\package\api
@echo ********** END OF BUILINDING IQCare API ********** >> %log%
@echo ********** END OF BUILINDING IQCare API ********** >> %log%
@echo "********** Building IQCare LAB **********" >> %log%
@echo ********** Building IQCare LAB **********
dotnet publish Solutions/IQCare.Core/IQCare.Lab.WebApi/IQCare.Lab.WebApi.csproj -o %BATDIR%\package\lab
@echo ********** END OF BUILINDING IQCare LAB ********** >> %log%
@echo ********** END OF BUILINDING IQCare LAB ********** >> %log%
@echo "********** Building IQCare MATERNITY **********" >> %log%
@echo ********** Building IQCare MATERNITY **********
dotnet publish Solutions/IQCare.Core/IQCare.Maternity.WebApi/IQCare.Maternity.WebApi.csproj -o %BATDIR%\package\maternity
@echo ********** END OF BUILINDING IQCare MATERNITY ********** >> %log%
@echo ********** END OF BUILINDING IQCare MATERNITY ********** >> %log%
@echo "********** Building IQCare PREP **********" >> %log%
@echo ********** Building IQCare PREP **********
dotnet publish Solutions/IQCare.Core/IQCare.Prep.WebApi/IQCare.Prep.WebApi.csproj -o %BATDIR%\package\prep
@echo ********** END OF BUILINDING IQCare PREP ********** >> %log%
@echo ********** END OF BUILINDING IQCare PREP ********** >> %log%
@echo "********** Building IQCare COMMON WEB **********" >> %log%
@echo ********** Building IQCare COMMON WEB **********
dotnet publish Solutions/IQCare.Core/IQCare.Common.Web/IQCare.Common.Web.csproj -o %BATDIR%\package\common
@echo ********** END OF BUILINDING IQCare COMMON WEB ********** >> %log%
@echo ********** END OF BUILINDING IQCare COMMON WEB ********** >> %log%
@echo "********** Building IQCare AIR WEB **********" >> %log%
@echo ********** Building IQCare AIR WEB **********
dotnet publish Solutions/IQCare.Core/IQCare.AIR.Web/IQCare.AIR.Web.csproj -o %BATDIR%\package\air
@echo ********** END OF BUILINDING IQCare AIR WEB ********** >> %log%
@echo ********** END OF BUILINDING IQCare AIR WEB ********** >> %log%
@echo "********** Building IQCare PHARM **********" >> %log%
@echo ********** Building IQCare PHARM **********
dotnet publish Solutions/IQCare.Core/IQCare.Pharm.WebApi/IQCare.Pharm.WebApi.csproj -o %BATDIR%\package\pharm
@echo ********** END OF BUILINDING IQCare PHARM ********** >> %log%
@echo ********** END OF BUILINDING IQCare PHARM ********** >> %log%
@echo "********** Building IQCare Queue WEB **********" >> %log%
@echo ********** Building IQCare Queue WEB **********
dotnet publish Solutions/IQCare.Core/IQCare.Queue.Web/IQCare.Queue.Web.csproj -o %BATDIR%\package\queue
@echo ********** END OF BUILINDING IQCare Queue WEB ********** >> %log%
@echo ********** END OF BUILINDING IQCare Queue WEB ********** >> %log%
dotnet publish Solutions/IQCare.Core/IQCare.Core.DbMigration/IQCare.Core.DbMigration.csproj -o %BATDIR%\Release\DbMigration\win-x64 -r win-x64
dotnet publish Solutions/IQCare.Core/IQCare.Core.DbMigration/IQCare.Core.DbMigration.csproj -o %BATDIR%\Release\DbMigration\win-x86 -r win-x86
cd Solutions/IQCare.Core/IQCare
ng build --base-href "/frontend/" --prod --aot --output-hashing=all
pause