diff options
| author | Arslaan Pathan <[email protected]> | 2025-06-12 17:38:10 +1200 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2025-06-12 17:38:10 +1200 |
| commit | 525b709e379846070a632cbffe10fae999b23842 (patch) | |
| tree | 2e9531448c27b78fe94e195f408adb46e1bb9af8 /Makefile | |
| parent | f77b6f2f5271bc84a0cec318ae6d6e351e698346 (diff) | |
| download | showdownofthesticks-525b709e379846070a632cbffe10fae999b23842.tar.xz showdownofthesticks-525b709e379846070a632cbffe10fae999b23842.zip | |
Add BG image stuff
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -37,9 +37,10 @@ LUA_OBJ = $(patsubst src/lua/%.c, $(BUILD_DIR)/lua/%.o, $(LUA_SRC)) ifeq ($(UNAME_S),Darwin) TARGET_DIR = $(BUILD_DIR)/dist/$(APP_NAME).app/Contents/MacOS + RESOURCES_DIR = $(BUILD_DIR)/dist/$(APP_NAME).app/Contents/Resources TARGET = $(TARGET_DIR)/$(APP_NAME) INFO_PLIST = $(BUILD_DIR)/dist/$(APP_NAME).app/Contents/Info.plist - APP_ICNS = $(BUILD_DIR)/dist/$(APP_NAME).app/Contents/Resources/AppIcon.icns + APP_ICNS = $(RESOURCES_DIR)/AppIcon.icns MAKE_APP = true else TARGET_DIR = $(BUILD_DIR)/dist @@ -76,6 +77,7 @@ ifeq ($(MAKE_APP),true) mkdir -p $(dir $(APP_ICNS)) cp MacShit/Info.plist $(INFO_PLIST) cp MacShit/AppIcon.icns $(APP_ICNS) + cp -r assets $(RESOURCES_DIR)/assets mkdir -p $(TARGET_DIR) cp $(MACOS_SDL_DYLIB_LOCATION) $(TARGET_DIR)/libSDL2.dylib cp $(MACOS_SDL_TTF_DYLIB_LOCATION) $(TARGET_DIR)/libSDL2_ttf.dylib @@ -88,6 +90,7 @@ ifeq ($(MAKE_APP),true) otool -l $(TARGET) endif ifeq ($(OS),Windows_NT) + cp -r assets $(TARGET_DIR)/assets cp $(NT_SDL_DLL_LOCATION) $(TARGET_DIR)/SDL2.dll cp $(NT_SDL_TTF_DLL_LOCATION) $(TARGET_DIR)/SDL2_ttf.dll cp $(NT_SDL_IMAGE_DLL_LOCATION) $(TARGET_DIR)/SDL2_image.dll |
