Skip to content

Commit

Permalink
Try putting libraries in Resources/lib instead of Frameworks in m…
Browse files Browse the repository at this point in the history
…acOS workflow
  • Loading branch information
valentinegb committed May 28, 2024
1 parent 9e28d8c commit d2477e8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ jobs:
run: |
mkdir -p tuba-macos/Tuba.app/Contents/MacOS
mv tuba-macos/bin/dev.geopjr.Tuba tuba-macos/Tuba.app/Contents/MacOS/
mkdir -p tuba-macos/Tuba.app/Contents/Resources
mkdir -p tuba-macos/Tuba.app/Contents/Resources/lib
mv tuba-macos/share/ tuba-macos/Tuba.app/Contents/Resources/
mkdir -p tuba-macos/Tuba.app/Contents/Frameworks
otool -L tuba-macos/Tuba.app/Contents/MacOS/dev.geopjr.Tuba | grep '\/opt\/homebrew\/.*\.dylib' -o | xargs -I{} cp "{}" tuba-macos/Tuba.app/Contents/Frameworks
otool -L tuba-macos/Tuba.app/Contents/MacOS/dev.geopjr.Tuba | grep '\/opt\/homebrew\/.*\.dylib' -o | xargs -I{} sh -c 'install_name_tool -change {} ../Frameworks/${1##*/} tuba-macos/Tuba.app/Contents/MacOS/dev.geopjr.Tuba' _ {}
otool -L tuba-macos/Tuba.app/Contents/MacOS/dev.geopjr.Tuba | grep '\/opt\/homebrew\/.*\.dylib' -o | xargs -I{} cp "{}" tuba-macos/Tuba.app/Contents/Resources/lib
otool -L tuba-macos/Tuba.app/Contents/MacOS/dev.geopjr.Tuba | grep '\/opt\/homebrew\/.*\.dylib' -o | xargs -I{} sh -c 'install_name_tool -change {} @rpath/${1##*/} tuba-macos/Tuba.app/Contents/MacOS/dev.geopjr.Tuba' _ {}
cp -r $(brew --prefix adwaita-icon-theme)/share/icons/* tuba-macos/Tuba.app/Contents/Resources/share/icons/
cat <<EOF >tuba-macos/Tuba.app/Contents/Info.plist
<?xml version="1.0" encoding="UTF-8"?>
Expand Down

0 comments on commit d2477e8

Please sign in to comment.