forked from mad201802/firstpass
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
43 lines (36 loc) · 678 Bytes
/
build.bat
File metadata and controls
43 lines (36 loc) · 678 Bytes
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
@REM Copyright (C) 2023 Firstpass
@REM
@REM This script will build the backend & frontend and
@REM package it into an installer for Windows.
@REM
@REM Make sure Maven & Yarn are in your PATH.
@echo off
@echo.
@echo Building backend...
@echo.
cd backend
call mvn package
if %errorlevel% neq 0 goto :error
cd ..
@echo.
@echo Building frontend...
@echo.
cd frontend
call yarn install
if %errorlevel% neq 0 goto :error
call yarn build
if %errorlevel% neq 0 goto :error
@echo.
@echo Building installer...
@echo.
call yarn dist:win %*
if %errorlevel% neq 0 goto :error
cd ..
@echo.
@echo.
@echo Build finished successfully!
goto :eof
:error
@echo.
@echo.
@echo Build failed!