chore: update build config, linting, and add test infrastructure

Replace install -D with mkdir -p + install for macOS portability,
add vitest with jsdom and testing-library, configure eslint for
react-hooks v7 warnings, and add tokio test deps for Rust.
This commit is contained in:
2026-04-06 13:12:43 +03:00
parent f8dd94a6c7
commit 1e002d801a
9 changed files with 1357 additions and 39 deletions

View File

@@ -98,12 +98,14 @@ export DESKTOP_ENTRY
.PHONY: install
install: build ## Build release and install to system (PREFIX=/usr/local)
install -Dm755 $(TARGET_DIR)/$(APP_NAME) $(DESTDIR)$(BINDIR)/$(APP_NAME)
@mkdir -p $(DESTDIR)$(BINDIR)
install -m755 $(TARGET_DIR)/$(APP_NAME) $(DESTDIR)$(BINDIR)/$(APP_NAME)
@mkdir -p $(DESTDIR)$(DATADIR)/applications
@echo "$$DESKTOP_ENTRY" > $(DESTDIR)$(DATADIR)/applications/$(APP_NAME).desktop
@for size in 32x32 128x128; do \
if [ -f src-tauri/icons/$$size.png ]; then \
install -Dm644 src-tauri/icons/$$size.png \
mkdir -p $(DESTDIR)$(DATADIR)/icons/hicolor/$$size/apps; \
install -m644 src-tauri/icons/$$size.png \
$(DESTDIR)$(DATADIR)/icons/hicolor/$$size/apps/$(APP_NAME).png; \
fi; \
done