Last active
March 3, 2023 04:04
-
-
Save tetebueno/ab0b197d7e43f6192565ec0a288c437a to your computer and use it in GitHub Desktop.
Install custom DXVK for Lutris (Ubuntu 18.04)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# References: | |
# https://www.youtube.com/watch?v=X6Vk_J3p2KA | |
# https://launchpad.net/~mati865/+archive/ubuntu/mingw-w64 | |
# https://github.com/doitsujin/dxvk/issues/766#issuecomment-442079595 | |
# Vulkan | |
sudo aptitude install libvulkan1 libvulkan1:i386 python3-pip | |
#Meson | |
pip3 install --user meson | |
# glslangValidator | |
wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-linux-Release.zip | |
unzip glslang-master-linux-Release.zip -d glslang-master-linux-Release | |
sudo mv glslang-master-linux-Release /opt/glslang-master-linux-Release | |
sudo ln -s /opt/glslang-master-linux-Release/bin/glslangValidator /usr/local/bin/glslangValidator | |
# Mingw 6.0.0 | |
sudo add-apt-repository ppa:mati865/mingw-w64 | |
sudo aptitude upgrade | |
# Pick posix in all of them... | |
sudo update-alternatives --config x86_64-w64-mingw32-gcc | |
sudo update-alternatives --config x86_64-w64-mingw32-g++ | |
sudo update-alternatives --config i686-w64-mingw32-gcc | |
sudo update-alternatives --config i686-w64-mingw32-g++ | |
# Install | |
git clone https://github.com/Joshua-Ashton/dxvk.git | |
cd dxvk/ | |
git checkout async | |
./package-release.sh master /home/$(whoami)/.local/share/lutris/runtime/dxvk/dxvk-async --no-package | |
# Move folders | |
mv ~/.local/share/lutris/runtime/dxvk/dxvk-async/dxvk-master/x32 ~/.local/share/lutris/runtime/dxvk/dxvk-async | |
mv ~/.local/share/lutris/runtime/dxvk/dxvk-async/dxvk-master/x64 ~/.local/share/lutris/runtime/dxvk/dxvk-async | |
# Cleanup | |
cd .. | |
rm -rf dxvk | |
rm ~/.local/share/lutris/runtime/dxvk/dxvk-async/dxvk-master | |
rm glslang-master-linux-Release.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment