summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/build.sh b/build.sh
index f826b87..fff8475 100755
--- a/build.sh
+++ b/build.sh
@@ -106,13 +106,12 @@ clang src/main.cpp $WARNING_FLAGS $OPTIMIZATION $ADDITIONAL_FLAGS -o bin/real2d
$SDL_ARGS \
$OPTIONAL_FLAGS \
-I . \
- -lm -I /usr/local/include $(pkg-config --cflags --libs $FFMPEG_LIBS)
+ -lm $(pkg-config --cflags --libs $FFMPEG_LIBS)
if [[ "$OSTYPE" =~ ^darwin ]]; then
-mv bin/real2d_"$ARCHNAME"_"$OSNAME" lib/mac_app_template/Contents/MacOS/real
mkdir bin/real_"$ARCHNAME".app
-cp -r lib/mac_app_template/Contents bin/real_"$ARCHNAME".app
+cp -r misc/mac_app_template/Contents bin/real_"$ARCHNAME".app
+cp bin/real2d_"$ARCHNAME"_"$OSNAME" bin/real_"$ARCHNAME".app/Contents/MacOS/real
xattr -cr bin/real_"$ARCHNAME".app
dylibbundler -od -b -x bin/real_"$ARCHNAME".app/Contents/MacOS/real -d bin/real_"$ARCHNAME".app/Contents/libs
-rm lib/mac_app_template/Contents/MacOS/real
fi