build: add Makefile with webkit2_41 build tag for Linux

Wails v2 defaults to linking against webkit2gtk-4.0, but modern Linux
distributions (e.g. Fedora) only ship webkit2gtk-4.1. The webkit2_41
build tag tells Wails to link against the correct library.

Provides two targets:
- make dev: run wails dev with the correct tag
- make build: build the production binary with the correct tag
- make clean: remove build artifacts
This commit is contained in:
2026-04-24 17:10:29 -04:00
parent ff1b8fb742
commit b03d4ab7e3

12
Makefile Normal file
View File

@@ -0,0 +1,12 @@
TAGS := webkit2_41
.PHONY: dev build clean
dev:
wails dev -tags $(TAGS)
build:
wails build -tags $(TAGS)
clean:
rm -rf build/bin/*