Skip to content

Commit

Permalink
fix(build): fix macOS issue
Browse files Browse the repository at this point in the history
  • Loading branch information
b00f committed Aug 1, 2024
1 parent 5ed5561 commit e7e164b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/releasers/macos/run-install-name-tool-change.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if [ "x$ACTION" = "xchange" ]; then
libs="`otool -L $LIBRARY 2>/dev/null | fgrep compatibility | cut -d\( -f1 | grep $WRONG_PREFIX | sort | uniq`"
for lib in $libs; do
if ! echo $lib | grep --silent "@executable_path" ; then
if echo $lib | grep --silent "/Cellar/"; then
if echo $lib | grep --silent "${LIB_HOME}/Cellar/"; then
fixed=`echo $lib | sed -e "s|${LIB_HOME}/Cellar/\([^/]*\)/[^/]*/|@executable_path/../Resources/opt/\1/|"`
else
fixed=`echo $lib | sed -e s,\${WRONG_PREFIX},\${RIGHT_PREFIX},`
Expand Down

0 comments on commit e7e164b

Please sign in to comment.