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
13 lines
138 B
Makefile
13 lines
138 B
Makefile
TAGS := webkit2_41
|
|
|
|
.PHONY: dev build clean
|
|
|
|
dev:
|
|
wails dev -tags $(TAGS)
|
|
|
|
build:
|
|
wails build -tags $(TAGS)
|
|
|
|
clean:
|
|
rm -rf build/bin/*
|