Mercurial > minori
annotate scripts/osx/deploy_build.sh @ 250:c130f47f6f48
*: many many changes
e.g. the search page is actually implemented now!
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Sun, 04 Feb 2024 21:17:17 -0500 |
| parents | 3a4aa9b4814c |
| children | 862d0d8619f6 |
| rev | line source |
|---|---|
|
244
3a4aa9b4814c
scripts: convert to use posix shell
Paper <paper@paper.us.eu.org>
parents:
241
diff
changeset
|
1 #!/bin/sh |
| 237 | 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 | |
|
244
3a4aa9b4814c
scripts: convert to use posix shell
Paper <paper@paper.us.eu.org>
parents:
241
diff
changeset
|
9 cp -r "$SCRIPT_DIR/../../rc/osx/$BUNDLE_NAME.app" . |
|
3a4aa9b4814c
scripts: convert to use posix shell
Paper <paper@paper.us.eu.org>
parents:
241
diff
changeset
|
10 |
| 237 | 11 mkdir -p "$BUNDLE_NAME.app/Contents/MacOS" |
| 12 cp ".libs/minori" "$BUNDLE_NAME.app/Contents/MacOS/minori" | |
|
244
3a4aa9b4814c
scripts: convert to use posix shell
Paper <paper@paper.us.eu.org>
parents:
241
diff
changeset
|
13 |
| 237 | 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 | |
|
244
3a4aa9b4814c
scripts: convert to use posix shell
Paper <paper@paper.us.eu.org>
parents:
241
diff
changeset
|
19 |
| 237 | 20 macdeployqt "$BUNDLE_NAME.app" |
