-
Notifications
You must be signed in to change notification settings - Fork 0
/
installvulkan.sh
37 lines (30 loc) · 1.11 KB
/
installvulkan.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
cp winevulkan.json "$WINEPREFIX"/drive_c/windows/
WINECMD=${WINE-wine}
if [ "$WINECMD" = "wine" ]; then
if [ "$WINEARCH" = "win64" ]; then
WINECMD=wine64
else
WINECMD=wine
fi
fi
WINEARCH="$WINEARCH" WINEPREFIX="$WINEPREFIX" "$WINECMD" regedit /S vulkan.reg
if [ ! -f VulkanSDK-1.0.51.0-Installer.exe ]; then
wget https://vulkan.lunarg.com/sdk/download/1.0.68.0/windows/VulkanSDK-1.0.51.0-Installer.exe
fi
WINEARCH="$WINEARCH" WINEPREFIX="$WINEPREFIX" "$WINECMD" VulkanSDK-1.0.51.0-Installer.exe
if [ -z "$DXVK" ]; then
wineserver -k
exit
else
if [ ! -d "$WINEARCH" ]; then
mkdir $WINEARCH
URLPREFIX=${WINEARCH:3}
curl https://haagch.frickel.club/files/dxvk/latest/"$URLPREFIX"/bin/dxgi.dll -o $WINEARCH/dxgi.dll
curl https://haagch.frickel.club/files/dxvk/latest/"$URLPREFIX"/bin/d3d11.dll -o $WINEARCH/d3d11.dll
curl https://haagch.frickel.club/files/dxvk/latest/"$URLPREFIX"/bin/setup_dxvk.sh -o $WINEARCH/setup_dxvk.sh
fi
WINEARCH=$WINEARCH WINEPREFIX="$WINEPREFIX" bash $WINEARCH/setup_dxvk.sh
fi
wineserver -k
exit