POL_Install_mono5.20

Informations

Creator Mensajes
Dadu042
Moderator

Warning

This installer is a beta script. It means that it might not work as expected

Informations

Platforms:
Downloads: 1396
Wine: System

Feedbacks

Description

2019. Requires OS Windows Vista or higher. Wikipedia.

= Dotnet v4.6 ?

Source code

#!/bin/bash
# PlayOnLinux Function
# Date : (2020-01-09 13:01)
# Last revision : see changelog
# Author : Dadu042
# Only For : http://www.playonlinux.com
#
# CHANGELOG
# [Dadu042] (2020-01-09 13:01)
#   First script.

if [ "$POL_ARCH" == "amd64" ]; then
        POL_Debug_Fatal "$(eval_gettext '64-bit not supported.')"
fi

FORCE_MODE=$1
 
# Download Mono
mkdir -p "$POL_USER_ROOT"/ressources/mono5.20/
cd "$POL_USER_ROOT"/ressources/mono5.20/
POL_Download_Resource "https://download.mono-project.com/archive/5.20.1/windows-installer/mono-5.20.1.34-gtksharp-2.12.45-win32-0.msi" "4b86ba73fe7f7bd2db74777c4e9d44f2" "mono4.81"
  
# Check if it is already installed
CHECK_MONO481=`find $WINEPREFIX -name "mono-5.20.1.dll"`
if [ "$CHECK_MONO481" == "" ] || [ "$FORCE_MODE" == "--force" ]; then
        POL_Wine start msiexec /i "mono-5.20.1.34-gtksharp-2.12.45-win32-0.msi" /silent
        POL_Wine_WaitEx
fi

Contributions

Filters:

Contribute
Member Mensajes
Dadu042 Thursday 9 January 2020 at 13:04
Dadu042
Moderator

Information

This update has been approved by the team.

Differences

@@ -0,0 +1,28 @@
+#!/bin/bash
+# PlayOnLinux Function
+# Date : (2020-01-09 13:01)
+# Last revision : see changelog
+# Author : Dadu042
+# Only For : http://www.playonlinux.com
+#
+# CHANGELOG
+# [Dadu042] (2020-01-09 13:01)
+#   First script.
+
+if [ "$POL_ARCH" == "amd64" ]; then
+        POL_Debug_Fatal "$(eval_gettext '64-bit not supported.')"
+fi
+
+FORCE_MODE=$1
+ 
+# Download Mono
+mkdir -p "$POL_USER_ROOT"/ressources/mono5.20/
+cd "$POL_USER_ROOT"/ressources/mono5.20/
+POL_Download_Resource "https://download.mono-project.com/archive/5.20.1/windows-installer/mono-5.20.1.34-gtksharp-2.12.45-win32-0.msi" "4b86ba73fe7f7bd2db74777c4e9d44f2" "mono4.81"
+  
+# Check if it is already installed
+CHECK_MONO481=`find $WINEPREFIX -name "mono-5.20.1.dll"`
+if [ "$CHECK_MONO481" == "" ] || [ "$FORCE_MODE" == "--force" ]; then
+        POL_Wine start msiexec /i "mono-5.20.1.34-gtksharp-2.12.45-win32-0.msi" /silent
+        POL_Wine_WaitEx
+fi
\ No newline at end of file

New source code

#!/bin/bash
# PlayOnLinux Function
# Date : (2020-01-09 13:01)
# Last revision : see changelog
# Author : Dadu042
# Only For : http://www.playonlinux.com
#
# CHANGELOG
# [Dadu042] (2020-01-09 13:01)
#   First script.

if [ "$POL_ARCH" == "amd64" ]; then
        POL_Debug_Fatal "$(eval_gettext '64-bit not supported.')"
fi

FORCE_MODE=$1
 
# Download Mono
mkdir -p "$POL_USER_ROOT"/ressources/mono5.20/
cd "$POL_USER_ROOT"/ressources/mono5.20/
POL_Download_Resource "https://download.mono-project.com/archive/5.20.1/windows-installer/mono-5.20.1.34-gtksharp-2.12.45-win32-0.msi" "4b86ba73fe7f7bd2db74777c4e9d44f2" "mono4.81"
  
# Check if it is already installed
CHECK_MONO481=`find $WINEPREFIX -name "mono-5.20.1.dll"`
if [ "$CHECK_MONO481" == "" ] || [ "$FORCE_MODE" == "--force" ]; then
        POL_Wine start msiexec /i "mono-5.20.1.34-gtksharp-2.12.45-win32-0.msi" /silent
        POL_Wine_WaitEx
fi

Respuestas