annotate scripts/osx/deploy_build.sh @ 267:09c5bd74fe93

win32: make builds work again
author Paper <paper@paper.us.eu.org>
date Thu, 11 Apr 2024 23:39:18 -0400
parents 862d0d8619f6
children f31305b9f60a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
a7d0d543b334 *: make OS X builds succeed
Paper <paper@paper.us.eu.org>
parents:
diff changeset
2 #
a7d0d543b334 *: make OS X builds succeed
Paper <paper@paper.us.eu.org>
parents:
diff changeset
3 # deploy_build.sh:
a7d0d543b334 *: make OS X builds succeed
Paper <paper@paper.us.eu.org>
parents:
diff changeset
4 # run this in your build dir to get a usable app bundle
a7d0d543b334 *: make OS X builds succeed
Paper <paper@paper.us.eu.org>
parents:
diff changeset
5
a7d0d543b334 *: make OS X builds succeed
Paper <paper@paper.us.eu.org>
parents:
diff changeset
6 SCRIPT_DIR=$(dirname -- "$0")
a7d0d543b334 *: make OS X builds succeed
Paper <paper@paper.us.eu.org>
parents:
diff changeset
7 BUNDLE_NAME="Minori"
a7d0d543b334 *: make OS X builds succeed
Paper <paper@paper.us.eu.org>
parents:
diff changeset
8
258
862d0d8619f6 *: HUUUGE changes
Paper <paper@paper.us.eu.org>
parents: 244
diff changeset
9 cp -r "$SCRIPT_DIR/../../rc/sys/osx/$BUNDLE_NAME.app" .
244
3a4aa9b4814c scripts: convert to use posix shell
Paper <paper@paper.us.eu.org>
parents: 241
diff changeset
10
237
a7d0d543b334 *: make OS X builds succeed
Paper <paper@paper.us.eu.org>
parents:
diff changeset
11 mkdir -p "$BUNDLE_NAME.app/Contents/MacOS"
a7d0d543b334 *: make OS X builds succeed
Paper <paper@paper.us.eu.org>
parents:
diff changeset
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
a7d0d543b334 *: make OS X builds succeed
Paper <paper@paper.us.eu.org>
parents:
diff changeset
14 mkdir -p "$BUNDLE_NAME.app/Contents/Frameworks"
a7d0d543b334 *: make OS X builds succeed
Paper <paper@paper.us.eu.org>
parents:
diff changeset
15 for i in animia pugixml anitomy; do
a7d0d543b334 *: make OS X builds succeed
Paper <paper@paper.us.eu.org>
parents:
diff changeset
16 cp "dep/$i/.libs/lib$i.0.dylib" "$BUNDLE_NAME.app/Contents/Frameworks"
a7d0d543b334 *: make OS X builds succeed
Paper <paper@paper.us.eu.org>
parents:
diff changeset
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"
a7d0d543b334 *: make OS X builds succeed
Paper <paper@paper.us.eu.org>
parents:
diff changeset
18 done
244
3a4aa9b4814c scripts: convert to use posix shell
Paper <paper@paper.us.eu.org>
parents: 241
diff changeset
19
237
a7d0d543b334 *: make OS X builds succeed
Paper <paper@paper.us.eu.org>
parents:
diff changeset
20 macdeployqt "$BUNDLE_NAME.app"