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:
6
Makefile
6
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user