Skip to content

Commit

Permalink
[CI] macOS : try workaround for libarchive deps rpath
Browse files Browse the repository at this point in the history
  • Loading branch information
adriweb authored Sep 2, 2023
1 parent d72ddd3 commit 4e6f459
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build.mac.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@ jobs:
mkdir -p /tmp/CEmu-nightly_mac_qt${{matrix.qtvershort}}/
mv CEmu.app /tmp/CEmu-nightly_mac_qt${{matrix.qtvershort}}/
- name: Fixup libarchive deps for some reason
run: |
libDir=/tmp/CEmu-nightly_mac_qt${{matrix.qtvershort}}/CEmu.app/Contents/Frameworks/
libAPath=${libDir}/libarchive.13.dylib
ls -al "$libAPath" || exit 1
for lib in xz zstd lz4 libb2; do cp -a $(brew --prefix ${lib})/lib/lib*.dylib "$libDir"; done
install_name_tool -change "@loader_path/../../../../opt/xz/lib/liblzma.5.dylib" "@executable_path/../Frameworks/liblzma.5.dylib" \
-change "@loader_path/../../../../opt/zstd/lib/libzstd.1.dylib" "@executable_path/../Frameworks/libzstd.1.dylib" \
-change "@loader_path/../../../../opt/lz4/lib/liblz4.1.dylib" "@executable_path/../Frameworks/liblz4.1.dylib" \
-change "@loader_path/../../../../opt/libb2/lib/libb2.1.dylib" "@executable_path/../Frameworks/libb2.1.dylib" "$libAPath" || echo lib path replacement fail
- name: "Codesign CEmu.app"
env:
HAVE_SECRETS: ${{ secrets.MACOS_CERTIFICATE_PWD != '' }}
Expand Down

0 comments on commit 4e6f459

Please sign in to comment.