Final MacOS .app fix

This commit is contained in:
Alexandre
2021-11-16 14:18:33 -06:00
parent 10733f7a5d
commit a6e6c93a50
2 changed files with 5 additions and 2 deletions

View File

@@ -14,5 +14,7 @@ get_first_arg() {
# Get current path
CURRENT_PATH=$(get_first_arg $(otool -L $EXEC | grep $WANTED_LIB))
# Change to the new path
install_name_tool -change $CURRENT_PATH $NEW_PATH $EXEC
# Change to the new path if found
if [ ! -z "$CURRENT_PATH" ]; then
install_name_tool -change $CURRENT_PATH $NEW_PATH $EXEC
fi