Update vulkanSDK (downloading latest version, rewrote .json file and registry entries creation)#742
Conversation
Merged current master
Update the fork with changes from master fork.
Fork update
merge changes
Merging changes to the fork
Merging updates from master fork
Merging changes from master
Rewrote the script to download the latest version of vulkan SDK and reworked how the json file is handled.
Restored verb implementation.
| var contentVulkanJSON = this.prefixDirectory() + "drive_c/windows/winevulkan.json"; | ||
| touch(contentVulkanJSON); | ||
| writeToFile(contentVulkanJSON, "{\n ""file_format_version"": "1.0.0",\n ""ICD"": {\n ""library_path"": ""c:\windows\system32\winevulkan.dll"",\n ""api_version"": ""1.1.92.1""\n }\n}"); | ||
| this.run("reg", ["add", "HKLM\Software\Khronos\Vulkan\Drivers", "/v", "C:\Windows\winevulkan.json", "/t", "REG_DWORD", "/d", "00000000", "/f"], null, false, true); |
There was a problem hiding this comment.
Should be possible to use the regedit plugin. If you explicitly want to use add instead of regedit.patch, you should add an according method to the plugin.
There was a problem hiding this comment.
I think we can create a ticket to fix this later
Changed variable name.
|
@Zemogiter anything you want to do or shall we merge? |
|
I've retested this verb just now and got this error: What's strange is that the |
|
You have |
|
But these |
|
That's why I said: they must be escaped with writeToFile(patchVulkanJSON, "{\n ""file_format_version"": "1.0.0"...do writeToFile(patchVulkanJSON, "{\n \"file_format_version\": \"1.0.0\"... |
|
Oh okey I didn't understand you before. The script is now operational and ready to be merged. |
Fixed the extra `"` inside the 2nd parm of `writeToFile` crashing the installer.
|
Don't you need to push something? |
|
Ah ok. |
|
Codacy complains about those escape characters. But they are needed or else installation of |
|
Yes, I've seen this before. I don't think you can fix it. |
Ready for review.