Open dkegel-fastly opened 2 years ago
So basically you just need to call wine64
instead of wine
? That would be easy to fix. You can replace the following line:
With
if runtime.GOOS == "darwin"
spec.Emulator = []string{"wine64"}
} else {
spec.Emulator = []string{"wine"}
}
Feel free to send a PR if that works better on MacOS.
I suspect it'll want to try both (to handle different sorts of wine installs), so some finesse may be required. I'll have a look sometime.
tinygo's wine support is great, but it has a little trouble with the wine installed from the packages at https://wiki.winehq.org/MacOS, but manually running wine64 gets around the problem for me.
Maybe the package still includes some 32 bit stuff which no longer works on current MacOS.
Here's how to reproduce (the first two lines are from memory and might be off a bit):