auriamg / macdylibbundler

Utility to ease bundling libraries into executables for OSX
MIT License
561 stars 84 forks source link

dylibbundler fails when building widelands on M1 Mac. #79

Open klaus-halfmann opened 1 year ago

klaus-halfmann commented 1 year ago

Could somebody help me with this one: https://github.com/widelands/widelands/issues/5610

   dylibbundler --create-dir --bundle-deps \
        --fix-file $DESTINATION/Widelands.app/Contents/MacOS/widelands \
        --dest-dir $DESTINATION/Widelands.app/Contents/libs \
        --search-path $ASANPATH                                     

Fails with some special resources used by our game only:

codesign --force --deep --preserve-metadata=entitlements,requirements,flags,runtime --sign - "WidelandsRelease/Widelands.app/Contents/MacOS/widelands"
WidelandsRelease/Widelands.app/Contents/MacOS/widelands: replacing existing signature
WidelandsRelease/Widelands.app/Contents/MacOS/widelands: bundle format unrecognized, invalid, or unsuitable
In subcomponent: /Users/klaus/develop/widelands/v1.1-rc1/WidelandsRelease/Widelands.app/Contents/MacOS/data/maps/Finnish_Lakes.wmf
  * Error : An error occurred while applying ad-hoc signature to WidelandsRelease/Widelands.app/Contents/MacOS/widelands

The .app Bundle can be started without issues. For now I Ignored the result. but this doe not seem reasonable?