release: Hermit 1.0.0 — home layout, icon font, install
Compact the home parliament chip, animate crab states like the HTML kit, ship hermit-icons.ttf (sbix) + frames, and install the font from make/ bootstrap/package paths. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -219,8 +219,8 @@ help:
|
||||
@echo " all / hermit incremental build (ccache auto if installed)"
|
||||
@echo " check build + run unit tests"
|
||||
@echo " asan AddressSanitizer rebuild + check"
|
||||
@echo " hermit-font optional SVG→color font (needs rsvg + fonttools)"
|
||||
@echo " install PREFIX=$(PREFIX); hermit + cst-agent symlink"
|
||||
@echo " hermit-font bake PNG frames + hermit-icons.ttf (Pillow+fonttools)"
|
||||
@echo " install PREFIX=$(PREFIX); hermit + font + cst-agent symlink"
|
||||
@echo " install-service systemd --user parliament unit"
|
||||
@echo "Env: USE_CCACHE=0|1|auto STATIC=1 CST_WEBUI=0 CC=tcc"
|
||||
@echo " HERMIT_ICONS=auto|mini|font HERMIT_*/CST_* env"
|
||||
@@ -250,7 +250,7 @@ hermit: $(OBJ) sashidown-lib
|
||||
|
||||
hermit-font:
|
||||
@python3 scripts/build_hermit_font.py || \
|
||||
echo "hermit-font: skipped (install rsvg-convert + fonttools to build)"
|
||||
echo "hermit-font: skipped (need Pillow+fonttools; try: nix-shell -p python3Packages.pillow python3Packages.fonttools)"
|
||||
|
||||
# Built-in model data as a C byte list (included by model_registry.c).
|
||||
.gen/models_builtin.inc: src/models_builtin.json
|
||||
@@ -328,9 +328,24 @@ install: hermit
|
||||
install -m 0755 hermit "$(DESTDIR)$(PREFIX)/bin/hermit"
|
||||
ln -sfr "$(DESTDIR)$(PREFIX)/bin/hermit" "$(DESTDIR)$(PREFIX)/bin/cst-agent" 2>/dev/null || \
|
||||
ln -sf hermit "$(DESTDIR)$(PREFIX)/bin/cst-agent"
|
||||
@if [ ! -f res/hermit-icons.ttf ]; then $(MAKE) hermit-font || true; fi
|
||||
@if [ -f res/hermit-icons.ttf ]; then \
|
||||
install -d "$(DESTDIR)$(PREFIX)/share/hermit"; \
|
||||
install -m 0644 res/hermit-icons.ttf "$(DESTDIR)$(PREFIX)/share/hermit/"; \
|
||||
install -d "$(DESTDIR)$(PREFIX)/share/fonts/hermit"; \
|
||||
install -m 0644 res/hermit-icons.ttf "$(DESTDIR)$(PREFIX)/share/hermit/hermit-icons.ttf"; \
|
||||
install -m 0644 res/hermit-icons.ttf "$(DESTDIR)$(PREFIX)/share/fonts/hermit/hermit-icons.ttf"; \
|
||||
if [ -n "$(HOME)" ] && [ "$(DESTDIR)" = "" ]; then \
|
||||
install -d "$(HOME)/.local/share/fonts"; \
|
||||
install -m 0644 res/hermit-icons.ttf "$(HOME)/.local/share/fonts/hermit-icons.ttf"; \
|
||||
command -v fc-cache >/dev/null 2>&1 && fc-cache -f "$(HOME)/.local/share/fonts" >/dev/null 2>&1 || true; \
|
||||
fi; \
|
||||
echo "installed Hermit Icons → $(PREFIX)/share/fonts/hermit/hermit-icons.ttf"; \
|
||||
else \
|
||||
echo "warning: res/hermit-icons.ttf missing (run: make hermit-font)" >&2; \
|
||||
fi
|
||||
@if [ -d res/hermit-frames ]; then \
|
||||
install -d "$(DESTDIR)$(PREFIX)/share/hermit/frames"; \
|
||||
cp -a res/hermit-frames/. "$(DESTDIR)$(PREFIX)/share/hermit/frames/"; \
|
||||
fi
|
||||
|
||||
# Optional systemd --user unit for the parliament seat service.
|
||||
@@ -346,6 +361,10 @@ install-service: install
|
||||
|
||||
uninstall:
|
||||
rm -f "$(DESTDIR)$(PREFIX)/bin/hermit" "$(DESTDIR)$(PREFIX)/bin/cst-agent"
|
||||
rm -f "$(DESTDIR)$(PREFIX)/share/hermit/hermit-icons.ttf"
|
||||
rm -f "$(DESTDIR)$(PREFIX)/share/fonts/hermit/hermit-icons.ttf"
|
||||
rm -rf "$(DESTDIR)$(PREFIX)/share/hermit/frames"
|
||||
rm -f "$(HOME)/.local/share/fonts/hermit-icons.ttf"
|
||||
rm -f "$(HOME)/.config/systemd/user/cst-agent-parliament.service"
|
||||
|
||||
-include $(DEPFILES)
|
||||
|
||||
Reference in New Issue
Block a user