-
Notifications
You must be signed in to change notification settings - Fork 45
Add vulkanSDK verb #511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add vulkanSDK verb #511
Conversation
Merge Phoenicis/Scripts:master into ImperatorS79/Scripts:master
updated Hearthstone (download application directly) (PhoenicisOrg#383)
Merge master
Merge recent commits
|
Try a registry file as described in the wiki. |
|
@plata maybe we can provide some kind of builder class/instance, that allows an easier building of registry files? |
|
@madoar if you have an idea how this could look like, feel free to describe it in a new issue (we should not discuss this here). |
|
I get this error now |
|
Sorry, my bad: that approach works only for applications. Have a look at the dotnet40 verb: this.run("reg", ["add", "HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Full", "/v", "Install", "/t", "REG_DWORD", "/d", "0001", "/f"])
.wait(tr("Please wait ...")); |
|
I do not manage to create the key with this method |
|
Any idea what's going wrong (I actually never tried this myself). |
|
I believe the problem occurs because of the line: var registrySettings = new AppResource().application([TYPE_ID, CATEGORY_ID, APPLICATION_ID]).get("vulkan.reg");I believe that |
|
The line cannot work because |
|
I understand. The question then is how do we want to write such a mechanism, how/where should it be called and what values need to be injected. |
|
The basic problem here is that a verb is simply not an application. So trying to use |
|
That is not entirely true. I think in total we have two points where we could intervene:
You're right this may not be the location to discuss this in detail. |
|
I would like to add a check for the wine version. Something like Edit : BTW it should be possible to install a verb in an existing prefix (like in POL4). |
|
Please open an issue for that feature request. |
|
I wanted to throw an error in case the user wanted to install vulkanSDK in a prefix with wine version <3.4. But it's not really necessary actually :) (and it is not in winetricks verb) so i will add a debug note. |
|
Can you provide the log in English? |
|
"Aucun fichier ou dossier de ce type" = "No file or folder of this type". Log updated. |
|
Are you sure that the recent master is merged correctly into your branch? The error should occur in the Wine implementation and not the object. |
|
Yes I am, I have just tested it right now with the default repository. |
|
Here is the log : |
|
But you can install 7-zip without vulkanSDK? |
|
The last log is for the normal script of 7-zip (without vulkanSDK) |
|
That's weird. I just tried 7-zip on my machine without a problem. Can you try again in a clean environment and everything from current master. |
|
Did it, same results. I will have to test this on my main pc to see, because it seems related to my vm. |
|
🤦♂️ I did not have the dependencies to run 32 bits programs (i deleted them...) Still got the error : |
|
That error makes sense. var registrySettings32 = new AppResource().application(["engines", "wine", "verbs"]).get("vulkan.reg");But: this would require to put the "vulkan.reg" into the "Verbs" directory directly. The reason is the currently very fixed repository structure. #543 could help here. |
|
It did not work that way, same error. |
|
What if you write the content of the reg file into the script directly (as string)? |
|
The problem with the string is, despite using \\, the key created is EDIT : ok it's a \\\\... Verb working. |
| * @returns {Wine} Wine object | ||
| */ | ||
| Wine.prototype.vulkanSDK = function () { | ||
| print("NOTE: you need a driver that support Vulkan enough to run winevulkan"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"supports". Can we be more clear about the meaning of "supports Vulkan enough"?
|
|
||
| var setupFile = new Resource() | ||
| .wizard(this.wizard()) | ||
| .url("https://sdk.lunarg.com/sdk/download/1.1.73.0/windows/VulkanSDK-1.1.73.0-Installer.exe") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a variable for the version such that it can be changed easily later on.
| include(["engines", "wine", "plugins", "regedit"]); | ||
| include(["utils", "functions", "net", "resource"]); | ||
| include(["utils", "functions", "filesystem", "files"]); | ||
| include(["utils", "functions", "apps", "resources"]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is
include(["utils", "functions", "apps", "resources"]);still required?
This is currently needed for every program that want to use vulkan on Wine 3.3 and greater(see https://github.com/roderickc/wine-vulkan/blob/master/README.md) (DOOM 2016 can then be updated to latest wine). However, I do not manage to create the right registry keys. the "\" does not appear, neither I use \ nor \\ in the .js