mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-12-03 23:24:17 +08:00
0c6c30d211
Acked-by: Martin Roukala <martin.roukala@mupuf.org> Signed-off-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18888>
40 lines
1.2 KiB
Bash
Executable File
40 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
dxvk_install_release() {
|
|
local DXVK_VERSION=${1:-"1.10.3"}
|
|
|
|
wget "https://github.com/doitsujin/dxvk/releases/download/v${DXVK_VERSION}/dxvk-${DXVK_VERSION}.tar.gz"
|
|
tar xzpf dxvk-"${DXVK_VERSION}".tar.gz
|
|
# https://github.com/doitsujin/dxvk/issues/2921
|
|
sed -i 's/wine="wine"/wine="wine32"/' "dxvk-${DXVK_VERSION}"/setup_dxvk.sh
|
|
"dxvk-${DXVK_VERSION}"/setup_dxvk.sh install
|
|
rm -rf "dxvk-${DXVK_VERSION}"
|
|
rm dxvk-"${DXVK_VERSION}".tar.gz
|
|
}
|
|
|
|
# Install from a Github PR number
|
|
dxvk_install_pr() {
|
|
local __prnum=$1
|
|
|
|
# NOTE: Clone all the ensite history of the repo so as not to think
|
|
# harder about cloning just enough for 'git describe' to work. 'git
|
|
# describe' is used by the dxvk build system to generate a
|
|
# dxvk_version Meson variable, which is nice-to-have.
|
|
git clone https://github.com/doitsujin/dxvk
|
|
pushd dxvk
|
|
git fetch origin pull/"$__prnum"/head:pr
|
|
git checkout pr
|
|
./package-release.sh pr ../dxvk-build --no-package
|
|
popd
|
|
pushd ./dxvk-build/dxvk-pr
|
|
./setup_dxvk.sh install
|
|
popd
|
|
rm -rf ./dxvk-build ./dxvk
|
|
}
|
|
|
|
dxvk_install_release "1.10.1"
|
|
#dxvk_install_pr 2359
|
|
|