VirtualBox

source: vbox/trunk/src/VBox/Additions/3D/mesa/mesa-24.0.2/.gitlab-ci/container/install-wine-dxvk.sh@ 103996

Last change on this file since 103996 was 103996, checked in by vboxsync, 13 months ago

Additions/3D/mesa: export mesa-24.0.2 to OSE. bugref:10606

File size: 738 bytes
Line 
1#!/usr/bin/env bash
2
3set -e
4
5overrideDll() {
6 if ! wine reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v "$1" /d native /f; then
7 echo -e "Failed to add override for $1"
8 exit 1
9 fi
10}
11
12dxvk_install_release() {
13 local DXVK_VERSION=${1:?}
14
15 curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
16 -O "https://github.com/doitsujin/dxvk/releases/download/v${DXVK_VERSION}/dxvk-${DXVK_VERSION}.tar.gz"
17 tar xzpf dxvk-"${DXVK_VERSION}".tar.gz
18 cp "dxvk-${DXVK_VERSION}"/x64/*.dll "$WINEPREFIX/drive_c/windows/system32/"
19 overrideDll d3d9
20 overrideDll d3d10core
21 overrideDll d3d11
22 overrideDll dxgi
23 rm -rf "dxvk-${DXVK_VERSION}"
24 rm dxvk-"${DXVK_VERSION}".tar.gz
25}
26
27dxvk_install_release "2.1"
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette