musikcube/script/patch-macos-rpath.sh

14 lines
413 B
Bash
Raw Normal View History

2022-12-04 00:50:37 +00:00
#!/bin/bash
2022-12-04 00:48:36 +00:00
PLATFORM=$(uname)
if [[ "$PLATFORM" == 'Darwin' ]]; then
2022-12-04 00:50:37 +00:00
echo "[patch-macos-rpath] patch macOS binaries..."
2022-12-04 00:48:36 +00:00
install_name_tool -add_rpath "@executable_path/" bin/musikcube
install_name_tool -add_rpath "@executable_path/lib" bin/musikcube
install_name_tool -add_rpath "@executable_path/" bin/musikcubed
install_name_tool -add_rpath "@executable_path/lib" bin/musikcubed
fi
exit 0