From 65e658ce8064a477783ba7820dcb9ab62dbe2bb7 Mon Sep 17 00:00:00 2001 From: B3ni Date: Mon, 7 Jul 2025 14:19:02 +0200 Subject: [PATCH] Enhance entrypoint script: add installation of .NET Runtime and SDK for Windows in Wine --- entrypoint.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 574b4e6..6df2818 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -37,6 +37,21 @@ sleep 5 echo "Testing Wine..." if timeout 10 wine cmd /c "echo Wine works"; then echo "Wine test successful" + + # Install .NET Runtime for Windows in Wine + echo "Installing .NET Runtime for Windows..." + cd /tmp + wget -q https://download.microsoft.com/download/6/6/1/661c9a9c-9c54-4f8b-b1c6-89d88c0f3d68/dotnet-runtime-9.0.6-win-x64.exe + timeout 120 wine dotnet-runtime-9.0.6-win-x64.exe /quiet /install || echo "Runtime installation timed out" + rm -f dotnet-runtime-9.0.6-win-x64.exe + + # Also install .NET SDK for Windows + echo "Installing .NET SDK for Windows..." + wget -q https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.301/dotnet-sdk-9.0.301-win-x64.exe + timeout 120 wine dotnet-sdk-9.0.301-win-x64.exe /quiet /install || echo "SDK installation timed out" + rm -f dotnet-sdk-9.0.301-win-x64.exe + + cd /home/container else echo "Wine test failed, but continuing..." fi