Wire app icon into the GTK window and build.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
pepaskopec-blip 2026-09-15 12:46:52 +02:00
commit 0397519801
5 changed files with 52 additions and 4 deletions

View file

@ -28,9 +28,16 @@ endif
SRC = $(wildcard *.c)
OBJ = $(SRC:.c=.o)
ICON_SRC = assets/app-icon.png
ICON_DST = assets/icons/hicolor/512x512/apps/maturita.png
all: $(TARGET)
$(TARGET): $(SRC)
$(ICON_DST): $(ICON_SRC)
mkdir -p $(dir $@)
cp "$(ICON_SRC)" "$@"
$(TARGET): $(SRC) $(ICON_DST)
$(CC) $(CFLAGS) -o $(TARGET) $(SRC) $(LIBS)
clean:
@ -48,6 +55,8 @@ bundle: $(TARGET)
@mkdir -p dist
@cp $(TARGET) dist/
@cp style.css dist/
@mkdir -p dist/icons/hicolor/512x512/apps
@cp "$(ICON_DST)" dist/icons/hicolor/512x512/apps/
@ldd $(TARGET) | grep -Ei '/(ucrt64|mingw64)/bin/' | awk '{print $$3}' \
| xargs -r -I{} cp -f {} dist/
@echo "Bundled into dist/ - run dist/$(TARGET)"