Skip to content

Create wrapper script for wine64 symlink #211

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

Merged
merged 1 commit into from
Mar 23, 2025

Conversation

Catdaemon
Copy link
Contributor

I was having issues getting shader compilation to work on my M4 Macbook Pro. I followed all the instructions and didn't have any luck at all. After some digging, I found this Reddit post suggesting it works if a script which re-executes wine is used - and it does!

This PR adds a simple wrapper script and symlinks to that instead of wine directly.

I'm not sure why this works (and why it doesn't work otherwise), but the existing symlink created by the script does not, so this is definitely something which should be done (at least until mgfxc or whatever stops trying to use wine64).

@dellis1972 dellis1972 merged commit 3953c3e into MonoGame:main Mar 23, 2025
2 checks passed
@harry-cpp
Copy link
Member

@dellis1972 Jumped the gun on this a bit, this breaks the installation for those on older linux distros that still have wine64.

@harry-cpp
Copy link
Member

Oh wait, no, my bad, this only executes if wine64 is not found, this is good! Tho we should be able to avoid the symlink entirely by doing:

echo -e "#\!/bin/bash\nwine \"\$@\"" > "$HOME/.winemonogame/wine64"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants