-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.bat
More file actions
47 lines (32 loc) · 1.11 KB
/
Copy pathmake.bat
File metadata and controls
47 lines (32 loc) · 1.11 KB
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
@echo off
:: Keeping the starting CWD in memory and going into the script's directory.
pushd %~dp0
cd /D "%~dp0"
:: Calling the common script.
call .\NibblePoker.Packaging.ListComPort\Scripts\commons.bat
:: Checking the excutables in the PATH.
call .\NibblePoker.Packaging.ListComPort\Scripts\check-and-fix-path.bat
if %NP_PATH_OK% neq true (
echo %NP_ESC%[31mFATAL ERROR:%NP_ESC%[0m Unable to continue without the required programs in the %%PATH%% !
goto end-failure
)
:: Compiling the various builds.
call .\NibblePoker.Packaging.ListComPort\Scripts\compile.bat
:: Making the MSI files.
call .\NibblePoker.Packaging.ListComPort\Scripts\make-msi.bat
if %NP_MSI_OK% neq true (
echo %NP_ESC%[31mFATAL ERROR:%NP_ESC%[0m Unable to continue the building process without the MSI files !
goto end-failure
)
:: Making the final packages.
call .\NibblePoker.Packaging.ListComPort\Scripts\package.bat
goto end-success
:end-success
echo %NP_ESC%[32mThe building process has finished successfully !%NP_ESC%[0m
goto end-failure
:end-failure
:: Going back to the original directory
popd
:: Ringing the terminal's bell
echo
pause