path to Frameworks should be relative

This commit is contained in:
Struma 2020-11-16 04:50:01 -05:00 committed by zzoro
parent 68056ffd71
commit 7bfc8d1912

View file

@ -8,8 +8,8 @@ if [ -n "$1" ]; then
cp "$1/libsteam_api.dylib" "${MESON_INSTALL_PREFIX}/Contents/Frameworks"
install_name_tool -change "@loader_path/libsteam_api.dylib" "@executable_path/../Frameworks/libsteam_api.dylib" $EXE
install_name_tool -add_rpath "@executable_path/../Frameworks" ${EXE}_rt
macpack -d "${MESON_INSTALL_PREFIX}/Contents/Frameworks" ${EXE}_rt
macpack -d "../Frameworks" ${EXE}_rt
else
install_name_tool -add_rpath "@executable_path/../Frameworks" ${EXE}
macpack -d "${MESON_INSTALL_PREFIX}/Contents/Frameworks" ${EXE}
macpack -d "../Frameworks" ${EXE}
fi