-
Notifications
You must be signed in to change notification settings - Fork 2
/
buildall.sh
executable file
·36 lines (30 loc) · 930 Bytes
/
buildall.sh
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
#!/bin/bash
step=0
STEPS=6
clear
let "step++"
printf "\n************************** $step/$STEPS : Init database...\n"
sqlite3 Server/App_Data/order.db < Server/App_Data/create_tables.sql
let "step++"
printf "\n************************** $step/$STEPS : Building client...\n"
cd client
npm install
rm -rfv dist
npm run build
let "step++"
printf "\n************************** $step/$STEPS : Copying client build to wwwroot server folder...\n"
rm -rfv ../Server/wwwroot/*
printf "\n"
cp -rfv dist/. ../Server/wwwroot
let "step++"
printf "\n************************** $step/$STEPS : Testing server...\n"
dotnet test ../Server.UnitTest
let "step++"
printf "\n************************** $step/$STEPS : Building server...\n"
dotnet build ../Server --configuration Release
let "step++"
printf "\n************************** $step/$STEPS : Finalizing...\n"
cd ..
printf "\nDone.\n\n"
# cd Server
# dotnet bin/Release/net6.0/Server.dll