do copy it before running prebuild

This commit is contained in:
UbitUmarov
2024-04-01 19:29:15 +01:00
parent 2e493fd6ce
commit d91a84e08d
2 changed files with 4 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
@echo OFF
copy bin\System.Drawing.Common.dll.win bin\System.Drawing.Common.dll
dotnet bin\prebuild.dll /target vs2022 /targetframework net6_0 /excludedir = "obj | bin" /file prebuild.xml
@echo Creating compile.bat
@@ -8,7 +10,7 @@ rem To compile in debug mode
rem To compile in release mode comment line (add rem to start) above and uncomment next (remove rem)
rem @echo dotnet build --configuration Debug OpenSim.sln > compile.bat
:done
copy bin\System.Drawing.Common.dll.win bin\System.Drawing.Common.dll
if exist "bin\addin-db-002" (
del /F/Q/S bin\addin-db-002 > NUL

View File

@@ -18,10 +18,10 @@ case "$1" in
*)
cp bin/System.Drawing.Common.dll.linux bin/System.Drawing.Common.dll
dotnet bin/prebuild.dll /target vs2022 /targetframework net6_0 /excludedir = "obj | bin" /file prebuild.xml
echo "dotnet build -c Release OpenSim.sln" > compile.sh
chmod +x compile.sh
cp bin/System.Drawing.Common.dll.linux bin/System.Drawing.Common.dll
;;