POL_Install_d3dcompiler_47

Informations

Créateur Messages
Dadu042

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 13910
Wine: System

Retours d'expérience

Description

X

Code source

#!/bin/bash
# Last revision : (2021-06-15 22:22)
# Creator: Dadu042 & Yaotl
# Inspired by Winetricks d3dcompiler_47 https://github.com/Winetricks/winetricks
# Script licence : GNU Lesser General Public License 2.1 https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt

POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing d3dcompiler_47 dlls...')" "$TITLE"
if [ -f "$POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32" ]; then
    if [ "$POL_ARCH" = "amd64" ]; then
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
    else
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    fi
else
    POL_Download_Resource "https://ftp.mozilla.org/pub/firefox/releases/78.11.0esr/win32/en-US/Firefox Setup 78.11.0esr.exe" "b72333db7a247ecd9df0189d79f2ed7f" "d3dcompiler_47/win32"
    7z x "Firefox Setup 78.11.0esr.exe" "core/d3dcompiler_47.dll"
    cp -f core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32
    if [ "$POL_ARCH" = "amd64" ]; then
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
    else
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    fi
    rm -rf $POL_USER_ROOT/ressources/d3dcompiler_47/win32
fi
if [ "$POL_ARCH" = "amd64" ]; then
    if [ -f "$POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64" ]; then
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    else
        POL_Download_Resource "https://ftp.mozilla.org/pub/firefox/releases/78.11.0esr/win64/en-US/Firefox Setup 78.11.0esr.exe" "6ad08322fa49ee1a2a4e12c6d77e5388" "d3dcompiler_47/win64"
        7z x "Firefox Setup 78.11.0esr.exe" "core/d3dcompiler_47.dll"
        cp -f core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64
        mv -f core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    fi
    rm -rf $POL_USER_ROOT/ressources/d3dcompiler_47/win64
fi

POL_Debug_Message "Overriding d3dcompiler_47 dll"
POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_47"

Contributions

Filters:

Contribuer
Membre Messages
Yaotl Mardi 15 Juin 2021 à 23:24
Yaotl Anonymous

Information

Cette mise à jour a été acceptée par l'équipe

Differences

@@ -1,36 +1,38 @@
 #!/bin/bash
-# Last revision : (2021-05-26 02:05)
+# Last revision : (2021-06-15 22:22)
 # Creator: Dadu042 & Yaotl
 # Inspired by Winetricks d3dcompiler_47 https://github.com/Winetricks/winetricks
 # Script licence : GNU Lesser General Public License 2.1 https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
 
 POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing d3dcompiler_47 dlls...')" "$TITLE"
 if [ -f "$POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32" ]; then
-    POL_Debug_Message "Copy d3dcompiler_47 dlls"
     if [ "$POL_ARCH" = "amd64" ]; then
         cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
-        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
     else
         cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
     fi
 else
-    POL_Debug_Message "Extract d3dcompiler_47 dlls"
-    mkdir -p "$POL_USER_ROOT/ressources/d3dcompiler_47"
-    cd "$POL_USER_ROOT/tmp"
-    wget -O "Firefox_Setup_78.10.1esr_win32.exe" "https://ftp.mozilla.org/pub/firefox/releases/78.10.1esr/win32/en-US/Firefox Setup 78.10.1esr.exe"
-    7z x "Firefox_Setup_78.10.1esr_win32.exe" "core/d3dcompiler_47.dll"
-    cp -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32
+    POL_Download_Resource "https://ftp.mozilla.org/pub/firefox/releases/78.11.0esr/win32/en-US/Firefox Setup 78.11.0esr.exe" "b72333db7a247ecd9df0189d79f2ed7f" "d3dcompiler_47/win32"
+    7z x "Firefox Setup 78.11.0esr.exe" "core/d3dcompiler_47.dll"
+    cp -f core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32
     if [ "$POL_ARCH" = "amd64" ]; then
-        mv -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
+        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
     else
-        mv -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
+        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
     fi
-    if  [ "$POL_ARCH" = "amd64" ]; then
-        wget -O "Firefox_Setup_78.10.1esr_win64.exe" "https://ftp.mozilla.org/pub/firefox/releases/78.10.1esr/win64/en-US/Firefox Setup 78.10.1esr.exe"
-        7z x "Firefox_Setup_78.10.1esr_win64.exe" "core/d3dcompiler_47.dll"
-        cp -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64
-        mv -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
+    rm -rf $POL_USER_ROOT/ressources/d3dcompiler_47/win32
+fi
+if [ "$POL_ARCH" = "amd64" ]; then
+    if [ -f "$POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64" ]; then
+        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
+    else
+        POL_Download_Resource "https://ftp.mozilla.org/pub/firefox/releases/78.11.0esr/win64/en-US/Firefox Setup 78.11.0esr.exe" "6ad08322fa49ee1a2a4e12c6d77e5388" "d3dcompiler_47/win64"
+        7z x "Firefox Setup 78.11.0esr.exe" "core/d3dcompiler_47.dll"
+        cp -f core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64
+        mv -f core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
     fi
+    rm -rf $POL_USER_ROOT/ressources/d3dcompiler_47/win64
 fi
+
 POL_Debug_Message "Overriding d3dcompiler_47 dll"
 POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_47"
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Last revision : (2021-06-15 22:22)
# Creator: Dadu042 & Yaotl
# Inspired by Winetricks d3dcompiler_47 https://github.com/Winetricks/winetricks
# Script licence : GNU Lesser General Public License 2.1 https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt

POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing d3dcompiler_47 dlls...')" "$TITLE"
if [ -f "$POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32" ]; then
    if [ "$POL_ARCH" = "amd64" ]; then
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
    else
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    fi
else
    POL_Download_Resource "https://ftp.mozilla.org/pub/firefox/releases/78.11.0esr/win32/en-US/Firefox Setup 78.11.0esr.exe" "b72333db7a247ecd9df0189d79f2ed7f" "d3dcompiler_47/win32"
    7z x "Firefox Setup 78.11.0esr.exe" "core/d3dcompiler_47.dll"
    cp -f core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32
    if [ "$POL_ARCH" = "amd64" ]; then
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
    else
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    fi
    rm -rf $POL_USER_ROOT/ressources/d3dcompiler_47/win32
fi
if [ "$POL_ARCH" = "amd64" ]; then
    if [ -f "$POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64" ]; then
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    else
        POL_Download_Resource "https://ftp.mozilla.org/pub/firefox/releases/78.11.0esr/win64/en-US/Firefox Setup 78.11.0esr.exe" "6ad08322fa49ee1a2a4e12c6d77e5388" "d3dcompiler_47/win64"
        7z x "Firefox Setup 78.11.0esr.exe" "core/d3dcompiler_47.dll"
        cp -f core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64
        mv -f core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    fi
    rm -rf $POL_USER_ROOT/ressources/d3dcompiler_47/win64
fi

POL_Debug_Message "Overriding d3dcompiler_47 dll"
POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_47"

Réponses

Mercredi 16 Juin 2021 à 6:29
Script approved, thanks.
Yaotl Mercredi 26 Mai 2021 à 12:04
Yaotl Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Differences

@@ -1,40 +1,36 @@
 #!/bin/bash
-# Last revision : (2020-07-18 20:00)
-# Creator: Dadu042
-#  based Petch's script, based on POL_Install_d3dx9 by Berillions/GNU_Raziel
-# Only For : http://www.playonlinux.com
- 
-# Downloading directx runtime
-POL_Download_Resource "http://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" "822e4c516600e81dc7fb16d9a77ec6d4"
- 
-# Extracting & Installing Dx9 dlls
-POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing DirectX 9 dlls...')" "$TITLE"
-cd "$POL_USER_ROOT/ressources"
- 
-install_dx_dlls () {
-    local CABPATTERN="$1"
-    local TARGET="$2"
-    local PATTERN="$3"
-    local TMPDLL="$POL_USER_ROOT/tmp/Install_d3dx9"
- 
-    mkdir "$TMPDLL"
-    cabextract -d "$TMPDLL/" -L -F "$CABPATTERN" directx_Jun2010_redist.exe
-     
-    for x in "$TMPDLL/"*.cab; do
-        cabextract -d "$TARGET/" -L -F "$PATTERN" "$x"
-    done
-    rm -rf "$TMPDLL"
-}
- 
-if [ "$POL_ARCH" = "amd64" ]; then
-        POL_Debug_Message "Extracting x86 and x64 dlls"
-        install_dx_dlls '*d3dcompiler_47_x64.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_47.dll'
-        install_dx_dlls '*d3dcompiler_47_x86.cab' "$WINEPREFIX/drive_c/windows/syswow64" 'd3dcompiler_47.dll'
+# Last revision : (2021-05-26 02:05)
+# Creator: Dadu042 & Yaotl
+# Inspired by Winetricks d3dcompiler_47 https://github.com/Winetricks/winetricks
+# Script licence : GNU Lesser General Public License 2.1 https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
+
+POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing d3dcompiler_47 dlls...')" "$TITLE"
+if [ -f "$POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32" ]; then
+    POL_Debug_Message "Copy d3dcompiler_47 dlls"
+    if [ "$POL_ARCH" = "amd64" ]; then
+        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
+        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
+    else
+        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
+    fi
 else
-        POL_Debug_Message "Extracting only x86 dll"
-        install_dx_dlls '*d3dcompiler_47_x86.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_47.dll'
+    POL_Debug_Message "Extract d3dcompiler_47 dlls"
+    mkdir -p "$POL_USER_ROOT/ressources/d3dcompiler_47"
+    cd "$POL_USER_ROOT/tmp"
+    wget -O "Firefox_Setup_78.10.1esr_win32.exe" "https://ftp.mozilla.org/pub/firefox/releases/78.10.1esr/win32/en-US/Firefox Setup 78.10.1esr.exe"
+    7z x "Firefox_Setup_78.10.1esr_win32.exe" "core/d3dcompiler_47.dll"
+    cp -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32
+    if [ "$POL_ARCH" = "amd64" ]; then
+        mv -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
+    else
+        mv -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
+    fi
+    if  [ "$POL_ARCH" = "amd64" ]; then
+        wget -O "Firefox_Setup_78.10.1esr_win64.exe" "https://ftp.mozilla.org/pub/firefox/releases/78.10.1esr/win64/en-US/Firefox Setup 78.10.1esr.exe"
+        7z x "Firefox_Setup_78.10.1esr_win64.exe" "core/d3dcompiler_47.dll"
+        cp -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64
+        mv -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
+    fi
 fi
- 
-# Overriding dlls
 POL_Debug_Message "Overriding d3dcompiler_47 dll"
 POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_47"
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Last revision : (2021-05-26 02:05)
# Creator: Dadu042 & Yaotl
# Inspired by Winetricks d3dcompiler_47 https://github.com/Winetricks/winetricks
# Script licence : GNU Lesser General Public License 2.1 https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt

POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing d3dcompiler_47 dlls...')" "$TITLE"
if [ -f "$POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32" ]; then
    POL_Debug_Message "Copy d3dcompiler_47 dlls"
    if [ "$POL_ARCH" = "amd64" ]; then
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    else
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    fi
else
    POL_Debug_Message "Extract d3dcompiler_47 dlls"
    mkdir -p "$POL_USER_ROOT/ressources/d3dcompiler_47"
    cd "$POL_USER_ROOT/tmp"
    wget -O "Firefox_Setup_78.10.1esr_win32.exe" "https://ftp.mozilla.org/pub/firefox/releases/78.10.1esr/win32/en-US/Firefox Setup 78.10.1esr.exe"
    7z x "Firefox_Setup_78.10.1esr_win32.exe" "core/d3dcompiler_47.dll"
    cp -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32
    if [ "$POL_ARCH" = "amd64" ]; then
        mv -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
    else
        mv -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    fi
    if  [ "$POL_ARCH" = "amd64" ]; then
        wget -O "Firefox_Setup_78.10.1esr_win64.exe" "https://ftp.mozilla.org/pub/firefox/releases/78.10.1esr/win64/en-US/Firefox Setup 78.10.1esr.exe"
        7z x "Firefox_Setup_78.10.1esr_win64.exe" "core/d3dcompiler_47.dll"
        cp -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64
        mv -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    fi
fi
POL_Debug_Message "Overriding d3dcompiler_47 dll"
POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_47"

Réponses

Mardi 1 Juin 2021 à 9:49
script approved.
winetrouble Mercredi 7 Avril 2021 à 8:21
winetrouble Anonymous

Messages

Your source "directx_Jun2010_redist.exe" doesn't contain neither the d3dcompiler_46.dll nor the d3dcompiler_47.dll. Based on winetricks I made a new script:

#!/usr/bin/env playonlinux-bash   
# Date : 2021-04-07
# Last revision : 2021-04-07
# Wine version used : system
# Distribution used to test : Manjaro Linux, Linuxmint 20.1, Ubuntu 20.10
# Author : winetrouble   
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="test"
PREFIX="test"  

POL_SetupWindow_Init
POL_Debug_Init

# Select and create prefix
POL_System_SetArch "amd64"
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate ""

eval_gettext 'Please wait while $TITLE is installed.'
POL_Download_Resource "https://download-installer.cdn.mozilla.net/pub/firefox/releases/62.0.3/win32/ach/Firefox%20Setup%2062.0.3.exe" "9cd3382cf5f2a20c804fe12db3c70771"

cd "$POL_USER_ROOT/ressources/"
    POL_System_7z x "Firefox%20Setup%2062.0.3.exe" "core/d3dcompiler_47.dll"
    cp "core/d3dcompiler_47.dll"* "$WINEPREFIX/drive_c/windows/system32/"
    rm "Firefox%20Setup%2062.0.3.exe"
    rm -r core
    if [ "$POL_ARCH" = "amd64" ]; then
        POL_Download_Resource "https://download-installer.cdn.mozilla.net/pub/firefox/releases/62.0.3/win64/ach/Firefox%20Setup%2062.0.3.exe" "58aabc1588593297851c38c6edf8736f"
        POL_System_7z x "Firefox%20Setup%2062.0.3.exe" "core/d3dcompiler_47.dll"
        cp "core/d3dcompiler_47.dll" "$WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll"
        rm "Firefox%20Setup%2062.0.3.exe"
        rm -r core
    fi


# Overriding dlls
POL_Debug_Message "Overriding d3dcompiler_47 dll"
POL_Wine_OverrideDLL "native" "d3dcompiler_47"
 
POL_SetupWindow_Close
exit

Réponses

Edité par winetrouble

Quentin PÂRIS Mercredi 10 Mars 2021 à 23:07
Quentin PÂRIS Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Differences

@@ -5,7 +5,7 @@
 # Only For : http://www.playonlinux.com
  
 # Downloading directx runtime
-POL_Download_Resource "http://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" "7c1fc2021cf57fed3c25c9b03cd0c31a"
+POL_Download_Resource "http://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" "822e4c516600e81dc7fb16d9a77ec6d4"
  
 # Extracting & Installing Dx9 dlls
 POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing DirectX 9 dlls...')" "$TITLE"

Nouveau code source

#!/bin/bash
# Last revision : (2020-07-18 20:00)
# Creator: Dadu042
#  based Petch's script, based on POL_Install_d3dx9 by Berillions/GNU_Raziel
# Only For : http://www.playonlinux.com
 
# Downloading directx runtime
POL_Download_Resource "http://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" "822e4c516600e81dc7fb16d9a77ec6d4"
 
# Extracting & Installing Dx9 dlls
POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing DirectX 9 dlls...')" "$TITLE"
cd "$POL_USER_ROOT/ressources"
 
install_dx_dlls () {
    local CABPATTERN="$1"
    local TARGET="$2"
    local PATTERN="$3"
    local TMPDLL="$POL_USER_ROOT/tmp/Install_d3dx9"
 
    mkdir "$TMPDLL"
    cabextract -d "$TMPDLL/" -L -F "$CABPATTERN" directx_Jun2010_redist.exe
     
    for x in "$TMPDLL/"*.cab; do
        cabextract -d "$TARGET/" -L -F "$PATTERN" "$x"
    done
    rm -rf "$TMPDLL"
}
 
if [ "$POL_ARCH" = "amd64" ]; then
        POL_Debug_Message "Extracting x86 and x64 dlls"
        install_dx_dlls '*d3dcompiler_47_x64.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_47.dll'
        install_dx_dlls '*d3dcompiler_47_x86.cab' "$WINEPREFIX/drive_c/windows/syswow64" 'd3dcompiler_47.dll'
else
        POL_Debug_Message "Extracting only x86 dll"
        install_dx_dlls '*d3dcompiler_47_x86.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_47.dll'
fi
 
# Overriding dlls
POL_Debug_Message "Overriding d3dcompiler_47 dll"
POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_47"

Réponses

Dadu042 Samedi 18 Juillet 2020 à 20:39
Dadu042

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Differences

@@ -0,0 +1,40 @@
+#!/bin/bash
+# Last revision : (2020-07-18 20:00)
+# Creator: Dadu042
+#  based Petch's script, based on POL_Install_d3dx9 by Berillions/GNU_Raziel
+# Only For : http://www.playonlinux.com
+ 
+# Downloading directx runtime
+POL_Download_Resource "http://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" "7c1fc2021cf57fed3c25c9b03cd0c31a"
+ 
+# Extracting & Installing Dx9 dlls
+POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing DirectX 9 dlls...')" "$TITLE"
+cd "$POL_USER_ROOT/ressources"
+ 
+install_dx_dlls () {
+    local CABPATTERN="$1"
+    local TARGET="$2"
+    local PATTERN="$3"
+    local TMPDLL="$POL_USER_ROOT/tmp/Install_d3dx9"
+ 
+    mkdir "$TMPDLL"
+    cabextract -d "$TMPDLL/" -L -F "$CABPATTERN" directx_Jun2010_redist.exe
+     
+    for x in "$TMPDLL/"*.cab; do
+        cabextract -d "$TARGET/" -L -F "$PATTERN" "$x"
+    done
+    rm -rf "$TMPDLL"
+}
+ 
+if [ "$POL_ARCH" = "amd64" ]; then
+        POL_Debug_Message "Extracting x86 and x64 dlls"
+        install_dx_dlls '*d3dcompiler_47_x64.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_47.dll'
+        install_dx_dlls '*d3dcompiler_47_x86.cab' "$WINEPREFIX/drive_c/windows/syswow64" 'd3dcompiler_47.dll'
+else
+        POL_Debug_Message "Extracting only x86 dll"
+        install_dx_dlls '*d3dcompiler_47_x86.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_47.dll'
+fi
+ 
+# Overriding dlls
+POL_Debug_Message "Overriding d3dcompiler_47 dll"
+POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_47"
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Last revision : (2020-07-18 20:00)
# Creator: Dadu042
#  based Petch's script, based on POL_Install_d3dx9 by Berillions/GNU_Raziel
# Only For : http://www.playonlinux.com
 
# Downloading directx runtime
POL_Download_Resource "http://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" "7c1fc2021cf57fed3c25c9b03cd0c31a"
 
# Extracting & Installing Dx9 dlls
POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing DirectX 9 dlls...')" "$TITLE"
cd "$POL_USER_ROOT/ressources"
 
install_dx_dlls () {
    local CABPATTERN="$1"
    local TARGET="$2"
    local PATTERN="$3"
    local TMPDLL="$POL_USER_ROOT/tmp/Install_d3dx9"
 
    mkdir "$TMPDLL"
    cabextract -d "$TMPDLL/" -L -F "$CABPATTERN" directx_Jun2010_redist.exe
     
    for x in "$TMPDLL/"*.cab; do
        cabextract -d "$TARGET/" -L -F "$PATTERN" "$x"
    done
    rm -rf "$TMPDLL"
}
 
if [ "$POL_ARCH" = "amd64" ]; then
        POL_Debug_Message "Extracting x86 and x64 dlls"
        install_dx_dlls '*d3dcompiler_47_x64.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_47.dll'
        install_dx_dlls '*d3dcompiler_47_x86.cab' "$WINEPREFIX/drive_c/windows/syswow64" 'd3dcompiler_47.dll'
else
        POL_Debug_Message "Extracting only x86 dll"
        install_dx_dlls '*d3dcompiler_47_x86.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_47.dll'
fi
 
# Overriding dlls
POL_Debug_Message "Overriding d3dcompiler_47 dll"
POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_47"

Réponses