https://bugs.winehq.org/show_bug.cgi?id=57874
--- Comment #4 from Gcenx gcenx83@gmail.com --- (In reply to Brendan Shanks from comment #3)
_NSGetExecutablePath() fits the bill, give MR7448 a try: https://gitlab.winehq.org/wine/wine/-/merge_requests/7448
Did some quick testing and that seems to resolve the bug