update build script (eww)

This commit is contained in:
Michael Becker 2025-03-20 18:58:08 -04:00
parent aef4eb4f37
commit f2aba8025a

11
editor
View File

@ -5,12 +5,23 @@ SRC_PATH=editor-dotnet/src/app/$APP_NAME
APP_PATH=$SRC_PATH/bin/Debug/net$DOTNET_VERSION
RELEASE=0
PREREQUISITES="desktop-framework-dotnet/desktop-framework-dotnet/src/engines/MBS.Desktop.Engines.GTK3"
if [ ! $RELEASE -eq 1 ] || [ ! -f $APP_PATH/$APP_NAME ]; then
pushd $SRC_PATH
dotnet build
popd
# also build desktop-framework-dotnet
for prereq in $PREREQUISITES; do
pushd $prereq
dotnet build
popd
done
cp desktop-framework-dotnet/desktop-framework-dotnet/src/engines/MBS.Desktop.Engines.GTK3/bin/Debug/net$DOTNET_VERSION/*.dll $APP_PATH/engines
fi
$APP_PATH/$APP_NAME