From 07b0f36d8e0ea110d7400561fd3480bbbc15666d Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Thu, 30 Sep 2021 14:40:53 -0700 Subject: [PATCH] ci: correct lib paths on macOS --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 91dbdadf0..694218757 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -368,6 +368,15 @@ jobs: $DOWNLOAD_TOOL https://github.com/arl/macdeployqtfix/raw/master/macdeployqtfix.py python2 macdeployqtfix.py $BUNDLE_NAME/Contents/MacOS/Olive $(dirname $(which qmake)) + # Manual corrections + for f in $BUNDLE_NAME/Contents/Frameworks/*.dylib + do + for r in $(otool -L $f | grep "@rpath" | awk '{print $1;}') + do + install_name_tool -change $r ${r//rpath/loader_path} $f + done + done + # Crashpad symbols /opt/olive-editor/bin/dump_syms $BUNDLE_NAME/Contents/MacOS/Olive > Olive.sym SYM_HEADER=($(head -n 1 Olive.sym)) # Read first line of symbol file