summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2022-12-18 20:00:47 -0500
committerFox Caminiti <fox@foxcam.net>2022-12-18 20:00:47 -0500
commit4854647d659f75ac6cf4575b61d1dcfd25865791 (patch)
tree3296bdfa30fa76688844755b37094753ea82d033 /build.sh
parentbedd6906eabdd513042d6a178d4dc56a3a41d1d3 (diff)
lazy
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