-
Notifications
You must be signed in to change notification settings - Fork 3
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
webkitgtk hook fails if multiple webkitgtk versions are installed #7
Comments
That's odd, Or am I reading this wrong and the issue is when In any case if it is the later case how does the CI end up with multiple
I think what can be done is bundle the webkit2gtk directory with the same version number as the library in the AppDir, not sure what @VHSgunzo thinks about adding all of them to the AppDir. |
One issue with adding all of them to the AppDir is that the helper binaries have the same names, or at least they do for webkit2gtk 4.0 and 4.1.
so that means we can't have the same binaries with the same name in Worst case scenario you can ignore all the
The issue with using a relative interpreter is that you have to change the current working directory to the AppDir, which already needs to be done due to the patching done in the webkit2gtk libs anyway. |
thanks for the fast response :)
yep
CI is fine in most cases i assume. For Tauri's use case we have to deal with users running it on their own machines though (mostly for testing, but too often for distribution...). In 22.04 a user could have all 3 versions, in 24.04 there's still 4.1 and 6.0.
ah right, got it.
At that point i'd probably just hardcode the webkit folder name that i need instead x) |
Alright but the AppImage should only have one instance of webkit2gtk. Doesn't matter what versions the user has installed or if any at all.
Do you mean compile webkit2gtk? Note that the lib patching can be avoided if webkit2gtk gets compiled with developer mode, which lets the env variable |
@FabianLars @Samueru-sama |
With users i meant developers using Tauri, sorry.
nono, i meant changing the lib4bin script for my usecase in our distribution of it to make it only care about 4.1 (or 6.0 soon). Compiling webkitgtk isn't an option for us sadly.
This seems to work as far as i can tell, thanks! |
Btw @FabianLars you should only use 24.04 or newer to make appimages this way. |
Noted |
Ref #5 (cc @Samueru-sama )
When users have more than one of webkitgtk 4.0, 4.1, and 6.0 installed, which is somewhat likely outside of CI envs, the script fails with
Assuming that this error means that
sys_webkit_lib_dir
is not a single dir, imo it would be fine to simply include all of them considering the very small size of the files in question (but wouldn't mind if it could detect the version from the .so file or something).I'm not that familiar with bash scripts so i'm not very confident in fixing this myself but if nobody else has fixed (or closed it as wontfix) i'll try to take a stab at it anyway once my use case has gotten past the proof-of-concept stage.
The text was updated successfully, but these errors were encountered: