I have a macos app bundle hierarchy as seen below:
My App.app
Contents
Info.plist
MacOS
My App
Resources
My App.icns
SharedSupport
wine
bin
wine64
lib64
wine
( Windows dlls)
libwine.dylib
I am able to run SharedSupport/wine/bin/wine64 before code signing the app.
However, as soon as i sign the SharedSupport/wine/lib64/ and SharedSupport/wine/bin/ folder contents, I cannot run wine/bin/wine64 anymore with the following error:
wine: failed to load wine/lib64/wine/ntdll.dll error c000000d.
I have tried to move the wine directories in Resources but that did not solve the issue.
How do i sign the wine executables and libraries in macos app bundle so i can still run wine successfully?