mirror of
https://github.com/LIV2/amiberry.git
synced 2025-12-06 06:32:45 +00:00
Leave .so files in Resources for macOS, otherwise dlopen doesn't find them
This commit is contained in:
parent
07063685e1
commit
22a3f66cfc
@ -16,6 +16,10 @@ mkdir -p Amiberry.app/Contents/Frameworks
|
||||
mkdir -p Amiberry.app/Contents/Resources
|
||||
# Copy executable into App bundle
|
||||
cp amiberry Amiberry.app/Contents/MacOS/Amiberry
|
||||
# Copy capsimg.so into App bundle
|
||||
cp plugins/capsimg.so Amiberry.app/Contents/Resources/capsimg.so
|
||||
# Copy floppybridge lib into App bundle
|
||||
cp plugins/libfloppybridge.so Amiberry.app/Contents/Resources/libfloppybridge.so
|
||||
# Copy init script into the bundle
|
||||
cp macos_init_amiberry.zsh Amiberry.app/Contents/Resources
|
||||
chmod +x Amiberry.app/Contents/Resources/macos_init_amiberry.zsh
|
||||
|
||||
@ -105,9 +105,11 @@ UAE_DLHANDLE uae_dlopen_plugin(const TCHAR *name)
|
||||
#ifdef _WIN64
|
||||
_tcscat(path, _T("_x64"));
|
||||
#endif
|
||||
#ifndef __MACH__
|
||||
if (_tcscmp(path + _tcslen(path) - _tcslen(LT_MODULE_EXT), LT_MODULE_EXT) != 0) {
|
||||
_tcscat(path, LT_MODULE_EXT);
|
||||
}
|
||||
#endif
|
||||
UAE_DLHANDLE handle = uae_dlopen(path);
|
||||
#endif
|
||||
if (handle) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user