-
Notifications
You must be signed in to change notification settings - Fork 5
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
Cannot Detect If On Devel Branch #32
Comments
some breadcrumbs to follow:
AppImages also have a command to extract certain files. Maybe this could be used to sniff out the wine branch used without having to mount the AppImage. For example, I've found that it can be discovered inside mscoree.dll: $ grep -aEo 'wine-[a-z]+' /opt/wine-stable/lib/wine/i386-windows/mscoree.dll
wine-stable
# or, without knowing the full path ahead of time (less useful if you have multiple wine versions installed inside the search folder:
$ find /opt -name mscoree.dll -exec grep -aEo 'wine-[a-z]+' {} \;
wine-stable
wine-stable
# for an AppImage this seems to work (if you don't trust the filename):
$ grep -aEo 'wine-[a-z]+' wine-devel_8.19-x86_64.AppImage
wine-devel |
Searching a DLL might work, as that should be available on all systems if we search the right directory. We would need to pair the wine binary candidate with the dir containing its DLLs and then we should be able to search whatever we want. It might even be faster than waiting on a We might then be able to simplify the whole thing even, as then we could determine the binary's branch with a simple sed or awk. |
It would need some verification, but I bet the relative paths from the wine
binary to the mscoree.dlls are always the same, provided you resolve the
symlink at `/bin/wine` or `/usr/bin/wine` first that you'll probably find
on system installs.
…On Wed, Jan 3, 2024, 8:23 PM T. H. Wright ***@***.***> wrote:
Searching a DLL might work, as that should be available on all systems if
we search the right directory. We would need to pair the wine binary
candidate with the dir containing its DLLs and then we should be able to
search whatever we want. It might even be faster than waiting on a wine
--version check since we don't need to wait for the heavy wine bin to
load.
We might then be able to simplify the whole thing even, as then we could
determine the binary's branch with a simple sed or awk.
—
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFSOCVN3CLS7UAJ376IOQO3YMWV4NAVCNFSM6AAAAABBKM6U2WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZVHA2TINJXGY>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
I've started working on this in issue32 branch. It detects but doesn't yet handle AppImages, though. |
@n8marti and I discussed this issue and we do not see a good solution. Beginning with 8.16+ (IIRC) we no longer need to use staging but can use devel. Unfortunately, our method for detecting the branch used can distinguish between staging and stable but not between devel and stable, or put another way, our current check can determine if we are using staging or if stable/devel.
What this means is that the script errors on a valid wine devel version, not presenting it as an option for install. Meaning we are effectively back to using staging.
At present, the only option would be to detect the branch based on an operating system specific check, which we have available with the
get_os()
implemented in the rewrite, but this feels like overkill.The text was updated successfully, but these errors were encountered: