1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh BUNDLE="`echo "$0" | sed -e 's/\/Contents\/MacOS\/.*//'`" RESOURCES="$BUNDLE/Contents/Resources" echo "BUNDLE: $BUNDLE" echo "RESOURCES: $RESOURCES" export DYLD_LIBRARY_PATH=$RESOURCES/lib exec "$RESOURCES/bin/Executable"