forked from jumpinjackie/mapguide-maestro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.bat
38 lines (38 loc) · 2.99 KB
/
publish.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
@echo off
set CONF=%1
if "%CONF%"=="" set CONF=Release
pushd Maestro
dotnet publish -r win-x64 -c %CONF% --self-contained true --verbosity detailed .\Maestro.csproj -o "..\out\publish\%CONF%"
IF %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL%
popd
REM data
if not exist "%CD%\out\publish\%CONF%\Data" mkdir "%CD%\out\publish\%CONF%\Data"
if not exist "%CD%\out\publish\%CONF%\Data\TipOfTheDay" mkdir "%CD%\out\publish\%CONF%\Data\TipOfTheDay"
copy /Y "%CD%\Maestro\Data\TipOfTheDay\en.xml" "%CD%\out\publish\%CONF%\Data\TipOfTheDay"
REM copy addins
REM ExtendedObjectModels
if not exist "%CD%\out\publish\%CONF%\AddIns\ExtendedObjectModels" mkdir "%CD%\out\publish\%CONF%\AddIns\ExtendedObjectModels"
copy /Y "%CD%\Maestro.AddIn.ExtendedObjectModels\bin\%CONF%\Maestro.AddIn.ExtendedObjectModels.dll" "%CD%\out\publish\%CONF%\AddIns\ExtendedObjectModels"
copy /Y "%CD%\Maestro.AddIn.ExtendedObjectModels\bin\%CONF%\Manifest.addin" "%CD%\out\publish\%CONF%\AddIns\ExtendedObjectModels"
REM Rest
if not exist "%CD%\out\publish\%CONF%\AddIns\Rest" mkdir "%CD%\out\publish\%CONF%\AddIns\Rest"
copy /Y "%CD%\Maestro.AddIn.Rest\bin\%CONF%\Maestro.AddIn.Rest.dll" "%CD%\out\publish\%CONF%\AddIns\Rest"
copy /Y "%CD%\Maestro.AddIn.Rest\bin\%CONF%\Manifest.addin" "%CD%\out\publish\%CONF%\AddIns\Rest"
copy /Y "%CD%\Maestro.AddIn.Rest\bin\%CONF%\RestSharp.*" "%CD%\out\publish\%CONF%\AddIns\Rest"
REM Local
if not exist "%CD%\out\publish\%CONF%\AddIns\Local" mkdir "%CD%\out\publish\%CONF%\AddIns\Local"
copy /Y "%CD%\Maestro.AddIn.Local\bin\%CONF%\Maestro.AddIn.Local.dll" "%CD%\out\publish\%CONF%\AddIns\Local"
copy /Y "%CD%\Maestro.AddIn.Local\bin\%CONF%\OSGeo.MapGuide.Desktop.*" "%CD%\out\publish\%CONF%\AddIns\Local"
copy /Y "%CD%\Maestro.AddIn.Local\bin\%CONF%\OSGeo.MapGuide.Foundation.*" "%CD%\out\publish\%CONF%\AddIns\Local"
copy /Y "%CD%\Maestro.AddIn.Local\bin\%CONF%\OSGeo.MapGuide.PlatformBase.*" "%CD%\out\publish\%CONF%\AddIns\Local"
copy /Y "%CD%\Maestro.AddIn.Local\bin\%CONF%\OSGeo.MapGuide.Geometry.*" "%CD%\out\publish\%CONF%\AddIns\Local"
copy /Y "%CD%\Maestro.AddIn.Local\bin\%CONF%\OSGeo.MapGuide.Viewer.*" "%CD%\out\publish\%CONF%\AddIns\Local"
copy /Y "%CD%\Maestro.AddIn.Local\bin\%CONF%\OSGeo.MapGuide.MaestroAPI.Local.*" "%CD%\out\publish\%CONF%\AddIns\Local"
copy /Y "%CD%\Maestro.AddIn.Local\bin\%CONF%\Manifest.addin" "%CD%\out\publish\%CONF%\AddIns\Local"
xcopy /s /y /i "%CD%\Maestro.AddIn.Local\Dictionaries" "%CD%\out\publish\%CONF%\AddIns\Local\Dictionaries"
xcopy /s /y /i "%CD%\Packages\mapguide-api-base-x64\3.1.2.9484\mapguide-api-base\*.*" "%CD%\out\publish\%CONF%\AddIns\Local"
xcopy /s /y /i "%CD%\Packages\mg-desktop-x64\3.1.2.9484\mg-desktop\*.*" "%CD%\out\publish\%CONF%\AddIns\Local"
REM Scripting
if not exist "%CD%\out\publish\%CONF%\AddIns\Scripting" mkdir "%CD%\out\publish\%CONF%\AddIns\Scripting"
copy /Y "%CD%\Maestro.AddIn.Scripting\bin\%CONF%\Maestro.AddIn.Scripting.dll" "%CD%\out\publish\%CONF%\AddIns\Scripting"
copy /Y "%CD%\Maestro.AddIn.Scripting\bin\%CONF%\Manifest.addin" "%CD%\out\publish\%CONF%\AddIns\Scripting"