Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/libmupen64plus/mupen64plus-core/tools/osx_build_bundle.sh
2 views
1
#!/bin/sh
2
3
./m64p_build.sh
4
5
mkdir -p mupen64plus.app/Contents/MacOS/
6
7
mv test/mupen64plus test/*.dylib mupen64plus.app/Contents/MacOS/
8
9
APP_CONTENTS="./mupen64plus.app/Contents"
10
11
FIX_LIST="-x $APP_CONTENTS/MacOS/mupen64plus \
12
-x $APP_CONTENTS/MacOS/libmupen64plus.dylib \
13
-x $APP_CONTENTS/MacOS/mupen64plus-audio-sdl.dylib \
14
-x $APP_CONTENTS/MacOS/mupen64plus-input-sdl.dylib \
15
-x $APP_CONTENTS/MacOS/mupen64plus-rsp-hle.dylib \
16
-x $APP_CONTENTS/MacOS/mupen64plus-video-rice.dylib \
17
-x $APP_CONTENTS/MacOS/mupen64plus-video-glide64mk2.dylib"
18
19
dylibbundler -od -b $FIX_LIST -d $APP_CONTENTS/libs/
20
21
rm -rf $APP_CONTENTS/Resources
22
rm -rf $APP_CONTENTS/SharedSupport
23
mkdir -p $APP_CONTENTS/Resources
24
mkdir -p $APP_CONTENTS/Frameworks
25
mv test/*.ini test/*.ttf $APP_CONTENTS/Resources
26
mv test/mupen* $APP_CONTENTS/Resources
27
mv test $APP_CONTENTS/SharedSupport
28
cp -r /Library/Frameworks/SDL.framework $APP_CONTENTS/Frameworks
29
30
mv $APP_CONTENTS/SharedSupport/m64p_test_rom.v64 ./example.v64
31
echo './mupen64plus.app/Contents/MacOS/mupen64plus --corelib ./mupen64plus.app/Contents/MacOS/libmupen64plus.dylib --plugindir ./mupen64plus.app/Contents/MacOS --gfx mupen64plus-video-rice "$@"' > run_rice.sh
32
echo './mupen64plus.app/Contents/MacOS/mupen64plus --corelib ./mupen64plus.app/Contents/MacOS/libmupen64plus.dylib --plugindir ./mupen64plus.app/Contents/MacOS --gfx mupen64plus-video-glide64mk2 "$@"' > run_glide.sh
33
echo -e "Note that Mupen64Plus requires an Intel mac and will not run on PPC macs.\nIt is known to run on OS X 10.8; and most likely also runs on 10.7.\n\nThis application can NOT be opened in the Finder by double-clicking.\n To use, launch the terminal, then cd into the directory that contains mupen64plus.app and use a command like :\n\n $ ./run_rice.sh example.v64 # for the Rice video plugin\n $ ./run_glide.sh example.v64 # for the Glide64mk2 video plugin\n\n Note that at this point, the only way to configure Mupen64Plus is to edit the config files in ~/.config/mupen64plus\n\n If you cannot follow the instructions above then this package is not meant for you =)\n" > Readme.txt
34
chmod +x run_rice.sh run_glide.sh
35
zip -r mupen64plus-bundle-osx-2.0rc4.zip mupen64plus.app Readme.txt run_rice.sh run_glide.sh example.v64
36
37
38