# HG changeset patch # User Paper # Date 1705990779 28800 # Node ID 3a4aa9b4814c3a7af0f5e6821604beb9faa3d321 # Parent ed5ab38966664f0e5f3dc67ed3186c0fca0019c8 scripts: convert to use posix shell it's not like we even need bash anyway diff -r ed5ab3896666 -r 3a4aa9b4814c scripts/osx/deploy_build.sh --- 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" diff -r ed5ab3896666 -r 3a4aa9b4814c scripts/win32/deploy_build.sh --- 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