Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # MonoKickstart Shell Script
- # Written by Ethan "flibitijibibo" Lee
- # Move to script's directory
- (cd "`dirname "$0"`"
- # Get the system architecture
- UNAME=`uname`
- ARCH=`uname -m`
- # MonoKickstart (or mkbundle in this case) picks the right libfolder, so just execute the right binary.
- if [ "$UNAME" == "Darwin" ]; then
- # ... Except on OSX.
- export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:./osx/
- # Note that you will need to update your
- # launch configuration to the script location, NOT just the app location
- # (i.e. Kick.app/Contents/MacOS/Kick, not just Kick.app).
- # -flibit
- if [ "$STEAM_DYLD_INSERT_LIBRARIES" != "" ] && [ "$DYLD_INSERT_LIBRARIES" == "" ]; then
- export DYLD_INSERT_LIBRARIES="$STEAM_DYLD_INSERT_LIBRARIES"
- fi
- if [ "$ARCH" == "x86_64" ]; then
- ./MyFile $@
- # Like flibit said above, the above path will change when you package your
- # .app for the Mac App Store, Steam, etc. Don't forget to change it later!
- else
- ./MyFile.bin.osx86 $@
- fi
- else
- if [ "$ARCH" == "x86_64" ]; then
- ./MyFile.bin.x86_64 $@
- elif [ "$ARCH" == "aarch64" ]||[ "$ARCH" == "arm64" ]; then
- ./MyFile.bin.arm64 $@
- else
- ./MyFile.bin.x86 $@
- fi
- fi)&
Add Comment
Please, Sign In to add comment