@@ -13,14 +13,21 @@ xcopy "build\windows\*.*" "omSupply" /c
13
13
xcopy " build\windows\demo" " omSupply\demo" /c /y /i
14
14
copy " version.txt" " omSupply\version.txt"
15
15
16
- start /wait /b build\windows\omsupply-prepare.bat
16
+ @ REM note: the /b must come first, otherwise the command is not waited
17
+ start /b /wait build\windows\omsupply-prepare.bat
17
18
@ if %errorlevel% neq 0 exit /b %errorlevel%
18
19
19
- @ ECHO ##### Building omsupply for sqlite #####
20
- cd server && cargo build --release --bin omsupply_service && copy " target\release\omsupply_service.exe" " ..\omSupply\Server\omSupply-sqlite.exe"
20
+ @ cd server
21
+
22
+ @ ECHO ##### Building omsupply service::sqlite #####
23
+ cargo build --release --bin omsupply_service && copy " target\release\omsupply_service.exe" " ..\omSupply\Server\omSupply-sqlite.exe"
24
+ @ if %errorlevel% neq 0 exit /b %errorlevel%
25
+
26
+ @ ECHO ##### Building sqlite omsupply server::sqlite #####
27
+ cargo build --release && copy " target\release\remote_server.exe" " ..\omSupply\Server\omSupply-server-sqlite.exe"
21
28
@ if %errorlevel% neq 0 exit /b %errorlevel%
22
29
23
- @ ECHO ##### Building omsupply for postgres #####
30
+ @ ECHO ##### Building omsupply service:: postgres #####
24
31
cargo build --release --bin omsupply_service --features postgres && copy " target\release\omsupply_service.exe" " ..\omSupply\Server\omSupply-postgres.exe"
25
32
@ if %errorlevel% neq 0 exit /b %errorlevel%
26
33
@@ -29,9 +36,15 @@ cargo build --release --bin remote_server_cli && copy "target\release\remote_ser
29
36
cargo build --release --bin remote_server_cli --features postgres && copy " target\release\remote_server_cli.exe" " ..\omSupply\Server\omSupply-cli-postgres.exe"
30
37
@ if %errorlevel% neq 0 exit /b %errorlevel%
31
38
32
- @ ECHO ##### Building omSupply for the desktop #####
33
- cd " ..\client" && yarn electron:build && xcopy " packages\electron\out\open mSupply-win32-x64\**" " ..\omSupply\Desktop\" /e /h /c /i
39
+ @ ECHO ##### Building connection test utility #####
40
+ cargo build --release --bin test_connection && copy " target\release\test_connection.exe" " ..\omSupply\Server\test-connection-sqlite.exe"
41
+ cargo build --release --bin test_connection --features postgres && copy " target\release\test_connection.exe" " ..\omSupply\Server\test-connection-postgres.exe"
34
42
@ if %errorlevel% neq 0 exit /b %errorlevel%
35
43
36
- cd " ..\server" && cargo build --release && copy " target\release\remote_server.exe" " ..\omSupply\Server\omSupply-server-sqlite.exe"
44
+ @ cd..
45
+
46
+ @ REM start /b /wait build\windows\omsupply-android.bat
47
+ @ REM @if %errorlevel% neq 0 exit /b %errorlevel%
48
+
49
+ start /b /wait build\windows\omsupply-electron.bat
37
50
@ if %errorlevel% neq 0 exit /b %errorlevel%
0 commit comments