Mercurial > minori
comparison scripts/osx/deploy_build.sh @ 244:3a4aa9b4814c
scripts: convert to use posix shell
it's not like we even need bash anyway
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Mon, 22 Jan 2024 22:19:39 -0800 |
| parents | 06d6c351925c |
| children | 862d0d8619f6 |
comparison
equal
deleted
inserted
replaced
| 243:ed5ab3896666 | 244:3a4aa9b4814c |
|---|---|
| 1 #!/bin/bash | 1 #!/bin/sh |
| 2 # | 2 # |
| 3 # deploy_build.sh: | 3 # deploy_build.sh: |
| 4 # run this in your build dir to get a usable app bundle | 4 # run this in your build dir to get a usable app bundle |
| 5 | 5 |
| 6 SCRIPT_DIR=$(dirname -- "$0") | 6 SCRIPT_DIR=$(dirname -- "$0") |
| 7 BUNDLE_NAME="Minori" | 7 BUNDLE_NAME="Minori" |
| 8 | 8 |
| 9 cp -r "$SCRIPT_DIR/$BUNDLE_NAME.app" . | 9 cp -r "$SCRIPT_DIR/../../rc/osx/$BUNDLE_NAME.app" . |
| 10 | |
| 10 mkdir -p "$BUNDLE_NAME.app/Contents/MacOS" | 11 mkdir -p "$BUNDLE_NAME.app/Contents/MacOS" |
| 11 cp ".libs/minori" "$BUNDLE_NAME.app/Contents/MacOS/minori" | 12 cp ".libs/minori" "$BUNDLE_NAME.app/Contents/MacOS/minori" |
| 13 | |
| 12 mkdir -p "$BUNDLE_NAME.app/Contents/Frameworks" | 14 mkdir -p "$BUNDLE_NAME.app/Contents/Frameworks" |
| 13 for i in animia pugixml anitomy; do | 15 for i in animia pugixml anitomy; do |
| 14 cp "dep/$i/.libs/lib$i.0.dylib" "$BUNDLE_NAME.app/Contents/Frameworks" | 16 cp "dep/$i/.libs/lib$i.0.dylib" "$BUNDLE_NAME.app/Contents/Frameworks" |
| 15 install_name_tool -change "/usr/local/lib/lib$i.0.dylib" "@executable_path/../Frameworks/lib$i.0.dylib" "$BUNDLE_NAME.app/Contents/MacOS/minori" | 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" |
| 16 done | 18 done |
| 19 | |
| 17 macdeployqt "$BUNDLE_NAME.app" | 20 macdeployqt "$BUNDLE_NAME.app" |
