Skip to content

Commit

Permalink
FIX
Browse files Browse the repository at this point in the history
  • Loading branch information
maron2000 committed Oct 7, 2023
1 parent 12de239 commit d1bc7ab
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,16 @@ jobs:
echo "install lib"
cd dosbox-x.app/Contents/MacOS
echo "get list of libraries required"
INSTALL_LIBS=($(otool -L dosbox-x | grep '\w*@executable.*' - | sed -n -r 's#.+/(lib.*dylib).*#\1#p'))
INSTALL_LIBS=($(otool -L dosbox-x | grep '¥w*@executable.*' - | sed -n -r 's#.+/(lib.*dylib).*#¥1#p'))
for i in ${INSTALL_LIBS[@]}
do
j=($(echo $i | sed -E 's|([^¥.^¥-]+).*dylib|\1|p'))
j=($(echo $i | sed -E 's|([^¥.^¥-]+).*dylib|¥1|p'))
#echo $j
FILE=($(find -H /usr/** -name $j*.*.dylib 2>/dev/null))
if [ -z "$FILE" ]
then
FILE=($(find -H /System/** -name $j*.*.dylib 2>/dev/null))
fi
echo ${FILE}
cp ${FILE} arm64/$i
#cp ${FILE} x86_64/$i #currently searches arm64 directory regardless of platform
Expand All @@ -68,9 +72,9 @@ jobs:
strip $top/src/dosbox-x
make dosbox-x.app
cd dosbox-x.app/Contents/MacOS
INSTALL_LIBS=($(otool -L dosbox-x | grep '\w*@executable.*' - | sed -n -r 's#.+/(lib.*dylib).*#\1#p')) for i in ${INSTALL_LIBS[@]}
INSTALL_LIBS=($(otool -L dosbox-x | grep '¥w*@executable.*' - | sed -n -r 's#.+/(lib.*dylib).*#¥1#p')) for i in ${INSTALL_LIBS[@]}
do
j=($(echo $i | sed -E 's|([^¥.^¥-]+).*dylib|\1|p'))
j=($(echo $i | sed -E 's|([^¥.^¥-]+).*dylib|¥1|p'))
#echo $j
FILE=($(find -H /usr/** -name $j*.*.dylib 2>/dev/null))
echo ${FILE}
Expand Down

0 comments on commit d1bc7ab

Please sign in to comment.