-
Notifications
You must be signed in to change notification settings - Fork 1
/
prepare_release.bat
67 lines (45 loc) · 2.16 KB
/
prepare_release.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
@setlocal enabledelayedexpansion
@set version=%1
@if "%version%" == "" (
@echo Version needed^^!
@exit /b 1
)
@set artifactStagingDirectory=%2
@if not exist %artifactStagingDirectory% (
@echo Staging directory needed^^!
@exit /b 1
)
@if not exist %artifactStagingDirectory%\win-x86\RVis_v%version% (
@echo Expecting published x86^^!
@exit /b 1
)
@if not exist %artifactStagingDirectory%\win-x64\RVis_v%version% (
@echo Expecting published x64^^!
@exit /b 1
)
@mkdir %artifactStagingDirectory%\win-x86\RVis_v%version%\module
set moduleDirectory="%artifactStagingDirectory%\win-x86\RVis_v%version%\module"
@mkdir %moduleDirectory%\estimation
@copy UI\module\Estimation\bin\Release\net6.0-windows\win-x86\Estimation.dll %moduleDirectory%\estimation\ >nul
@mkdir %moduleDirectory%\evidence
@copy UI\module\Evidence\bin\Release\net6.0-windows\win-x86\Evidence.dll %moduleDirectory%\evidence\ >nul
@mkdir %moduleDirectory%\plot
@copy UI\module\Plot\bin\Release\net6.0-windows\win-x86\Plot.dll %moduleDirectory%\plot\ >nul
@mkdir %moduleDirectory%\sampling
@copy UI\module\Sampling\bin\Release\net6.0-windows\win-x86\Sampling.dll %moduleDirectory%\sampling\ >nul
@mkdir %moduleDirectory%\sensitivity
@copy UI\module\Sensitivity\bin\Release\net6.0-windows\win-x86\Sensitivity.dll %moduleDirectory%\sensitivity\ >nul
@mkdir %artifactStagingDirectory%\win-x64\RVis_v%version%\module
set moduleDirectory="%artifactStagingDirectory%\win-x64\RVis_v%version%\module"
@mkdir %moduleDirectory%\estimation
@copy UI\module\Estimation\bin\Release\net6.0-windows\win-x64\Estimation.dll %moduleDirectory%\estimation\ >nul
@mkdir %moduleDirectory%\evidence
@copy UI\module\Evidence\bin\Release\net6.0-windows\win-x64\Evidence.dll %moduleDirectory%\evidence\ >nul
@mkdir %moduleDirectory%\plot
@copy UI\module\Plot\bin\Release\net6.0-windows\win-x64\Plot.dll %moduleDirectory%\plot\ >nul
@mkdir %moduleDirectory%\sampling
@copy UI\module\Sampling\bin\Release\net6.0-windows\win-x64\Sampling.dll %moduleDirectory%\sampling\ >nul
@mkdir %moduleDirectory%\sensitivity
@copy UI\module\Sensitivity\bin\Release\net6.0-windows\win-x64\Sensitivity.dll %moduleDirectory%\sensitivity\ >nul
@endlocal
@exit /b 0