-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathexport_test.sh
executable file
·49 lines (38 loc) · 979 Bytes
/
export_test.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
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
PAUSE=${1:-1}
cp -rf .githooks/pre-commit .git/hooks
GEN_CLIENT=Luban/Luban.Runner.dll
[ -d C#/Server ] && rm -rf C#/Server
dotnet $GEN_CLIENT \
--conf luban.conf \
-t server \
-c cs-simple-json \
-d newtonjson \
-i test \
--customTemplateDir Tpls \
--validationFailAsError \
-x outputCodeDir=C#/Server \
-x outputDataDir=Json/Server \
-x newtonsoft.dll=Model \
-x newtonsoft.namespace=Example
./after_server.sh
if [ $? -ne 0 ]; then
echo "生成失败, 请检查错误"
[ $PAUSE -eq 1 ] && read
exit 1
fi
dotnet $GEN_CLIENT \
--conf luban.conf \
-t client \
-c cs-simple-json \
-d newtonjson \
-i test \
--customTemplateDir Tpls \
--validationFailAsError \
-x outputCodeDir=C#/Client \
-x outputDataDir=Json/Client \
-x newtonsoft.dll=Model \
-x newtonsoft.namespace=Example
./after_client.sh
[ $PAUSE -eq 1 ] && echo "输入 Enter 继续" && read
exit 0