Mercurial > minori
diff scripts/osx/deploy_build.sh @ 241:06d6c351925c
*: reorganize resources, +docs, build translations with autotools
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Mon, 22 Jan 2024 16:36:19 -0500 |
parents | rc/osx/deploy_build.sh@a7d0d543b334 |
children | 3a4aa9b4814c |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/osx/deploy_build.sh Mon Jan 22 16:36:19 2024 -0500 @@ -0,0 +1,17 @@ +#!/bin/bash +# +# deploy_build.sh: +# run this in your build dir to get a usable app bundle + +SCRIPT_DIR=$(dirname -- "$0") +BUNDLE_NAME="Minori" + +cp -r "$SCRIPT_DIR/$BUNDLE_NAME.app" . +mkdir -p "$BUNDLE_NAME.app/Contents/MacOS" +cp ".libs/minori" "$BUNDLE_NAME.app/Contents/MacOS/minori" +mkdir -p "$BUNDLE_NAME.app/Contents/Frameworks" +for i in animia pugixml anitomy; do + cp "dep/$i/.libs/lib$i.0.dylib" "$BUNDLE_NAME.app/Contents/Frameworks" + install_name_tool -change "/usr/local/lib/lib$i.0.dylib" "@executable_path/../Frameworks/lib$i.0.dylib" "$BUNDLE_NAME.app/Contents/MacOS/minori" +done +macdeployqt "$BUNDLE_NAME.app"