Mercurial > minori
diff 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 |
line wrap: on
line diff
--- a/scripts/osx/deploy_build.sh Mon Jan 22 19:54:41 2024 -0800 +++ b/scripts/osx/deploy_build.sh Mon Jan 22 22:19:39 2024 -0800 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # deploy_build.sh: # run this in your build dir to get a usable app bundle @@ -6,12 +6,15 @@ SCRIPT_DIR=$(dirname -- "$0") BUNDLE_NAME="Minori" -cp -r "$SCRIPT_DIR/$BUNDLE_NAME.app" . +cp -r "$SCRIPT_DIR/../../rc/osx/$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"