Mercurial > minori
changeset 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 | ed5ab3896666 |
children | 8b174bcde667 |
files | scripts/osx/deploy_build.sh scripts/win32/deploy_build.sh |
diffstat | 2 files changed, 7 insertions(+), 4 deletions(-) [+] |
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"
--- a/scripts/win32/deploy_build.sh Mon Jan 22 19:54:41 2024 -0800 +++ b/scripts/win32/deploy_build.sh Mon Jan 22 22:19:39 2024 -0800 @@ -11,14 +11,14 @@ # do not run this on untrusted executables. # see: ldd(1) ldd "$1" | while IFS="" read -r dependency; do - fields=($dependency) - lib="${fields[2]}" + lib="$(cut -d' ' -f3 <<< $dependency)" if [[ "$lib" == /"${MSYSTEM,,}"/* ]]; then echo "$lib" fi done } + if [ -d "$DIR" ]; then rm -r "$DIR" fi