File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,17 @@ mkdir -p $INSTALLDIR
1010cp -r $INSTALLDIR -arm64/* $INSTALLDIR
1111touch $INSTALLDIR /.keep
1212
13- FILES=$( find $INSTALLDIR -type f)
13+ EXES=$( find $INSTALLDIR -type f -perm -u+x)
14+ LIBS=$( find $INSTALLDIR -type f -name " *.dylib" )
15+ FILES=" $EXES $LIBS "
1416echo " Files: $FILES "
1517while IFS= read -r file; do
1618 file_arm64=$( sed " s|$INSTALLDIR |$INSTALLDIR -arm64|" <<< $file )
1719 file_x86_64=$( sed " s|$INSTALLDIR |$INSTALLDIR -x86_64|" <<< $file )
1820 if file $file | grep " Mach-O 64-bit executable" > /dev/null; then
1921 echo " Processing executable: $file $file_x86_64 $file_arm64 "
2022 lipo -create -output $file $file_x86_64 $file_arm64
21- elif file $file | grep " Mach-O 64-bit dynamic library" > /dev/null; then
23+ elif file $file | grep " Mach-O 64-bit dynamically linked shared library" > /dev/null; then
2224 echo " Processing dynamic library: $file $file_x86_64 $file_arm64 "
2325 lipo -create -output $file $file_x86_64 $file_arm64
2426 fi
You can’t perform that action at this time.
0 commit comments