Skip to content

Commit

Permalink
d3dcompiler_47: Download from mozila github repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcenx authored and austin987 committed Oct 3, 2023
1 parent afd1782 commit 07c6d38
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/winetricks
Original file line number Diff line number Diff line change
Expand Up @@ -6280,21 +6280,17 @@ w_metadata d3dcompiler_47 dlls \
publisher="Microsoft" \
year="FIXME" \
media="download" \
file1="FirefoxSetup62.0.3-win32.exe" \
file1="d3dcompiler_47_32.dll" \
installed_file1="${W_SYSTEM32_DLLS_WIN}/d3dcompiler_47.dll"

load_d3dcompiler_47()
{
# FIXME: would be awesome to find a small download that has both 32/64bit dlls, but this works for now:

w_download https://download-installer.cdn.mozilla.net/pub/firefox/releases/62.0.3/win32/ach/Firefox%20Setup%2062.0.3.exe "d6edb4ff0a713f417ebd19baedfe07527c6e45e84a6c73ed8c66a33377cc0aca" "FirefoxSetup62.0.3-win32.exe"
w_try_7z "${W_TMP}/win32" "${W_CACHE}/d3dcompiler_47/FirefoxSetup62.0.3-win32.exe" "core/d3dcompiler_47.dll"
w_try_cp_dll "${W_TMP}/win32/core/d3dcompiler_47.dll" "${W_SYSTEM32_DLLS}/d3dcompiler_47.dll"
w_download https://raw.githubusercontent.com/mozilla/fxc2/master/dll/d3dcompiler_47_32.dll 2ad0d4987fc4624566b190e747c9d95038443956ed816abfd1e2d389b5ec0851
w_try_cp_dll "${W_CACHE}/d3dcompiler_47/d3dcompiler_47_32.dll" "${W_SYSTEM32_DLLS}/d3dcompiler_47.dll"

if [ "${W_ARCH}" = "win64" ]; then
w_download https://download-installer.cdn.mozilla.net/pub/firefox/releases/62.0.3/win64/ach/Firefox%20Setup%2062.0.3.exe "721977f36c008af2b637aedd3f1b529f3cfed6feb10f68ebe17469acb1934986" "FirefoxSetup62.0.3-win64.exe"
w_try_7z "${W_TMP}/win64" "${W_CACHE}/d3dcompiler_47/FirefoxSetup62.0.3-win64.exe" "core/d3dcompiler_47.dll"
w_try_cp_dll "${W_TMP}/win64/core/d3dcompiler_47.dll" "${W_SYSTEM64_DLLS}/d3dcompiler_47.dll"
w_download https://raw.githubusercontent.com/mozilla/fxc2/master/dll/d3dcompiler_47.dll 4432bbd1a390874f3f0a503d45cc48d346abc3a8c0213c289f4b615bf0ee84f3
w_try_cp_dll "${W_CACHE}/d3dcompiler_47/d3dcompiler_47.dll" "${W_SYSTEM64_DLLS}/d3dcompiler_47.dll"
fi

w_override_dlls native d3dcompiler_47
Expand Down

0 comments on commit 07c6d38

Please sign in to comment.