musikcube/script/patch-macos-rpath.sh
2022-12-03 16:50:37 -08:00

14 lines
413 B
Bash
Executable File

#!/bin/bash
PLATFORM=$(uname)
if [[ "$PLATFORM" == 'Darwin' ]]; then
echo "[patch-macos-rpath] patch macOS binaries..."
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