Skip to content

Commit

Permalink
exit bundle script on error 2nd try
Browse files Browse the repository at this point in the history
  • Loading branch information
krupkat committed Jul 4, 2023
1 parent d2a3866 commit f3f1e03
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions misc/build/macos/bundle.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh
# macports based - adapt library path to libSDL an libiconv when using brew
# macports based, should work with brew as well

set -e

appname=Xpano
appfolder=$appname.app
Expand Down Expand Up @@ -28,7 +30,7 @@ cp -r ./install/share $appfolder/Contents/
echo "share copied..."

#get local dependencies
rpathdependencies=$(otool -L ./install/bin/Xpano| awk 'NR>1{print $1}' | grep @rpath | sed 's/@rpath\///')
rpathdependencies=$(otool -L ./install/bin/Xpano| awk 'NR>1{print $1}' | grep @rpath | sed 's/@rpath\///') || true

echo "rpath dependencies..."

Expand All @@ -53,7 +55,7 @@ for dep in $rpathdependencies; do
otool -L $libfile

#detect and copy second level macports dependencies
submacportsdependencies=$(otool -L $libfile | awk 'NR>1{print $1}' | grep opt)
submacportsdependencies=$(otool -L $libfile | awk 'NR>1{print $1}' | grep opt) || true
for subdep in $submacportsdependencies; do
echo "handlingsubdep " $subdep
#copy lib
Expand All @@ -65,7 +67,7 @@ for dep in $rpathdependencies; do
done

#get macports dependencies
macportsdependencies=$(otool -L ./install/bin/Xpano| awk 'NR>1{print $1}' | grep opt)
macportsdependencies=$(otool -L ./install/bin/Xpano| awk 'NR>1{print $1}' | grep opt) || true

for dep in $macportsdependencies; do
echo "handling dep" $dep
Expand Down

0 comments on commit f3f1e03

Please sign in to comment.