New: run-build.sh now also for Development Environments

This commit is contained in:
2026-02-13 18:22:06 +01:00
parent 3f034c6964
commit d3a914e020
2 changed files with 15 additions and 6 deletions

View File

@@ -1,13 +1,23 @@
#!/bin/bash
VERSION="$1"
DEBIAN_PACKAGE_PATH="$2"
ENVIRONMENT="$3"
if [ "$#" -ne 3 ]; then
echo "Error: You must provide exactly three arguments."
exit 1
fi
echo "$VERSION" "$DEBIAN_PACKAGE_PATH" "$ENVIRONMENT"
echo "Building oqtane.framework"
dotnet restore ./oqtane.framework/Oqtane.slnx
dotnet build ./oqtane.framework/Oqtane.slnx --no-restore
dotnet build -c Release ./oqtane.framework/Oqtane.slnx --no-restore
dotnet publish -c Release ./oqtane.framework/Oqtane.Server/Oqtane.Server.csproj -o ./alumnihub/opt/alumnihub --no-restore
dotnet build -c "$ENVIRONMENT" ./oqtane.framework/Oqtane.slnx --no-restore
dotnet publish -c "$ENVIRONMENT" ./oqtane.framework/Oqtane.Server/Oqtane.Server.csproj -o ./alumnihub/opt/alumnihub --no-restore
dotnet build -c "$ENVIRONMENT" ./interfaces/SZUAbsolventenverein.slnx --no-restore
mkdir -p ./oqtane.framework/Oqtane.Server/Packages
@@ -18,15 +28,14 @@ for module in $(ls . | grep -E 'Module|Theme')
do
echo "######## Building $module"
dotnet restore ./$module/*.slnx
dotnet build -c Release ./$module/*.slnx --no-restore
dotnet publish -c Release ./$module/*.slnx --no-restore
dotnet build -c "$ENVIRONMENT" ./$module/*.slnx --no-restore
dotnet publish -c "$ENVIRONMENT" ./$module/*.slnx --no-restore
done
cp -r ./oqtane.framework/Oqtane.Server/Packages ./alumnihub/opt/alumnihub/Packages
rm ./alumnihub/opt/alumnihub/appsettings.json
echo $VERSION $DEBIAN_PACKAGE_PATH
echo "Version: ${VERSION}" >> $DEBIAN_PACKAGE_PATH/DEBIAN/control