diff --git a/build_proton.sh b/build_proton.sh index 6ca0f822..2a61acca 100755 --- a/build_proton.sh +++ b/build_proton.sh @@ -109,6 +109,11 @@ PATH="$TOOLS_DIR32/bin:$PATH" $I386_WRAPPER winebuild --dll --fake-module -E vrc cp -a vrclient.dll.so "$DST_DIR"/lib/wine/ cp -a vrclient.dll.fake "$DST_DIR"/lib/wine/fakedlls/vrclient.dll +#copy runtime installers +cd "$TOP" +mkdir -p "$DST_DIR"/share/contrib/ +cp -a contrib/* "$DST_DIR"/share/contrib/ + echo "Packaging..." cd "$TOP" diff --git a/contrib/VulkanRT-1.0.65.1-Installer.exe b/contrib/VulkanRT-1.0.65.1-Installer.exe new file mode 100755 index 00000000..6633de86 Binary files /dev/null and b/contrib/VulkanRT-1.0.65.1-Installer.exe differ diff --git a/contrib/winevulkan.json b/contrib/winevulkan.json new file mode 100644 index 00000000..ecb52d9f --- /dev/null +++ b/contrib/winevulkan.json @@ -0,0 +1,7 @@ +{ + "file_format_version": "1.0.0", + "ICD": { + "library_path": "C:\\windows\\system32\\winevulkan.dll", + "api_version": "1.0.51" + } +} diff --git a/contrib/winevulkan.reg b/contrib/winevulkan.reg new file mode 100644 index 00000000..dafa2735 --- /dev/null +++ b/contrib/winevulkan.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\Software\Khronos\Vulkan\Drivers] +"C:\\windows\\system32\\winevulkan.json"=dword:00000000 diff --git a/proton b/proton index 541324de..81d45af2 100755 --- a/proton +++ b/proton @@ -75,6 +75,10 @@ if not os.path.isdir(basedir + "/dist/share/default_pfx"): #make default prefix env["WINEPREFIX"] = basedir + "/dist/share/default_pfx" run_wine([wine_path, "wineboot"]) + run_wine([wine_path, basedir + "/dist/share/contrib/VulkanRT-1.0.65.1-Installer.exe", "/S"]) + run_wine([wine_path, "regedit", basedir + "/dist/share/contrib/winevulkan.reg"]) + shutil.copy(basedir + "/dist/share/contrib/winevulkan.json", basedir + "/dist/share/default_pfx/drive_c/windows/system32/winevulkan.json") + shutil.copy(basedir + "/dist/share/contrib/winevulkan.json", basedir + "/dist/share/default_pfx/drive_c/windows/syswow64/winevulkan.json") run_wine([bindir + "/wineserver", "-w"]) prefix = os.environ["STEAM_COMPAT_DATA_PATH"] + "/pfx/"