Signing App bundle with wine packed in it

Questions about Wine on macOS.
Locked
festimxh
Newbie
Newbie
Posts: 1
Joined: Mon Feb 21, 2022 8:12 am

Signing App bundle with wine packed in it

Post by festimxh »

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?
Locked