Enhance entrypoint script: add installation of .NET Runtime and SDK for Windows in Wine
This commit is contained in:
@@ -37,6 +37,21 @@ sleep 5
|
|||||||
echo "Testing Wine..."
|
echo "Testing Wine..."
|
||||||
if timeout 10 wine cmd /c "echo Wine works"; then
|
if timeout 10 wine cmd /c "echo Wine works"; then
|
||||||
echo "Wine test successful"
|
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
|
else
|
||||||
echo "Wine test failed, but continuing..."
|
echo "Wine test failed, but continuing..."
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user