aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--src/main.cpp1
2 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1642d3f..05fdbd8 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,10 @@ $(TARGET): $(OBJ_CPP) $(LUA_OBJ)
ifeq ($(MAKE_APP),true)
mkdir -p $(dir $(INFO_PLIST))
cp Info.plist $(INFO_PLIST)
+ mkdir -p $(TARGET_DIR)
+ cp /opt/homebrew/opt/sdl2/lib/libSDL2-2.0.0.dylib $(TARGET_DIR)/libSDL2.dylib
+ install_name_tool -change /opt/homebrew/opt/sdl2/lib/libSDL2-2.0.0.dylib @executable_path/libSDL2.dylib $(TARGET)
+ otool -l $(TARGET)
endif
build/main.o: src/main.cpp
diff --git a/src/main.cpp b/src/main.cpp
index 9777a6f..9381731 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -100,6 +100,7 @@ int main() {
SDL_Init(SDL_INIT_EVERYTHING);
SDL_CreateWindowAndRenderer(WIDTH, HEIGHT, 0, &window, &renderer);
+ SDL_SetWindowTitle(window, "Showdown of the Sticks");
call_lua_function(L, "Setup");