install database module in generateAll script
This commit is contained in:
parent
ebb0b87543
commit
76418aee19
@ -26,6 +26,7 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [ "$REMOVE" = "1" ]; then
|
if [ "$REMOVE" = "1" ]; then
|
||||||
|
echo "remove output directory"
|
||||||
rm -rf output
|
rm -rf output
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -62,13 +63,16 @@ cp DbService.cs output/src/$PACKAGE_NAME/Services
|
|||||||
echo "generate endpoint code from openapi.yaml"
|
echo "generate endpoint code from openapi.yaml"
|
||||||
python3.10 generate.py
|
python3.10 generate.py
|
||||||
|
|
||||||
echo "copy endpoint code into source code try"
|
echo "copy endpoint code into source code tree"
|
||||||
cp regular.cs output/src/$PACKAGE_NAME/Implementations
|
cp regular.cs output/src/$PACKAGE_NAME/Implementations
|
||||||
|
|
||||||
|
|
||||||
if [ "$BUILD" = "1" ]; then
|
if [ "$BUILD" = "1" ]; then
|
||||||
echo "build service"
|
echo "build service"
|
||||||
cd output
|
cd output
|
||||||
|
pushd src/$PACKAGE_NAME
|
||||||
|
dotnet add package MySqlConnector --version 2.0.0
|
||||||
|
popd
|
||||||
sh build.sh
|
sh build.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user