-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.lnx.sh
executable file
·25 lines (20 loc) · 1.07 KB
/
build.lnx.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
# cd CoFlows.Client/CE
# # npm install
# # npm install -g @angular/cli
# ng build --prod --aot
# cd ../../
dotnet clean CoFlows.CE.lnx.sln
dotnet publish -c Release -f net6.0 -o CoFlows.Server/obj/lnx/publish CoFlows.Server/CoFlows.Server.lnx.csproj
javac -cp jars/scalap-2.12.10.jar:jars/scala-library.jar:./QuantApp.Kernel/JVM/app/quant/clr/ ./QuantApp.Kernel/JVM/app/quant/clr/*.java ./QuantApp.Kernel/JVM/app/quant/clr/function/*.java
scalac -d ./QuantApp.Kernel/JVM -cp ./QuantApp.Kernel/JVM/ ./QuantApp.Kernel/JVM/app/quant/clr/scala/*.scala
jar -cf app.quant.clr.jar -C ./QuantApp.Kernel/JVM/ .
rm ./QuantApp.Kernel/JVM/app/quant/clr/*.class
rm ./QuantApp.Kernel/JVM/app/quant/clr/function/*.class
rm ./QuantApp.Kernel/JVM/app/quant/clr/scala/*.class
mv app.quant.clr.jar ./CoFlows.Server/obj/lnx/publish
cp ./QuantApp.Kernel/JVM/JNIWrapper.cpp ./CoFlows.Server/obj/lnx/publish/
cp ./QuantApp.Kernel/JVM/app_quant_clr_CLRRuntime.h ./CoFlows.Server/obj/lnx/publish/
cd CoFlows.Server
docker build -t coflows/ce .
docker tag coflows/ce coflows/ce:latest
# docker push coflows/ce:latest