Mercurial > minori
comparison scripts/osx/deploy_build.sh @ 249:6b2441c776dd
*: merge
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Wed, 24 Jan 2024 20:18:59 -0500 |
| parents | 3a4aa9b4814c |
| children | 862d0d8619f6 |
comparison
equal
deleted
inserted
replaced
| 248:cf47a8f687c0 | 249:6b2441c776dd |
|---|---|
| 1 #!/bin/sh | |
| 2 # | |
| 3 # deploy_build.sh: | |
| 4 # run this in your build dir to get a usable app bundle | |
| 5 | |
| 6 SCRIPT_DIR=$(dirname -- "$0") | |
| 7 BUNDLE_NAME="Minori" | |
| 8 | |
| 9 cp -r "$SCRIPT_DIR/../../rc/osx/$BUNDLE_NAME.app" . | |
| 10 | |
| 11 mkdir -p "$BUNDLE_NAME.app/Contents/MacOS" | |
| 12 cp ".libs/minori" "$BUNDLE_NAME.app/Contents/MacOS/minori" | |
| 13 | |
| 14 mkdir -p "$BUNDLE_NAME.app/Contents/Frameworks" | |
| 15 for i in animia pugixml anitomy; do | |
| 16 cp "dep/$i/.libs/lib$i.0.dylib" "$BUNDLE_NAME.app/Contents/Frameworks" | |
| 17 install_name_tool -change "/usr/local/lib/lib$i.0.dylib" "@executable_path/../Frameworks/lib$i.0.dylib" "$BUNDLE_NAME.app/Contents/MacOS/minori" | |
| 18 done | |
| 19 | |
| 20 macdeployqt "$BUNDLE_NAME.app" |
