mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-04-21 21:52:04 +02:00
fixup macOS install script
This commit is contained in:
parent
8b63e08a9d
commit
f859c69b02
2 changed files with 8 additions and 5 deletions
|
@ -1,12 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
EXE=${MESON_INSTALL_PREFIX}/Contents/MacOS/mkxp-z
|
||||
install_name_tool -add_rpath "@executable_path/../libs" $EXE
|
||||
|
||||
macpack $EXE
|
||||
EXE=${MESON_INSTALL_PREFIX}/Contents/MacOS/$2
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
echo "Setting up steam_api manually..."
|
||||
mkdir -p "${MESON_INSTALL_PREFIX}/Contents/libs"
|
||||
cp "$1/libsteam_api.dylib" "${MESON_INSTALL_PREFIX}/Contents/libs"
|
||||
install_name_tool -change "@loader_path/libsteam_api.dylib" "@executable_path/../libs/libsteam_api.dylib" $EXE
|
||||
install_name_tool -add_rpath "@executable_path/../libs" ${EXE}_child
|
||||
macpack ${EXE}_child
|
||||
else
|
||||
install_name_tool -add_rpath "@executable_path/../libs" ${EXE}
|
||||
macpack ${EXE}
|
||||
fi
|
||||
|
|
|
@ -6,4 +6,4 @@ if steamworks == true
|
|||
swarg = steam_libpath
|
||||
endif
|
||||
|
||||
meson.add_install_script('macpack.sh', swarg)
|
||||
meson.add_install_script('macpack.sh', swarg, meson.project_name())
|
||||
|
|
Loading…
Add table
Reference in a new issue