feat: go build to dll

This commit is contained in:
Simon Ding
2025-04-09 14:12:02 +08:00
parent eabb39df02
commit 5ab347845a
3 changed files with 9 additions and 5 deletions

6
Makefile Normal file
View File

@@ -0,0 +1,6 @@
.PHONY: windows
windows:
@echo "Building for Windows..."
go build -ldflags="-X polaris/db.Version=$(git describe --tags --long)" -buildmode=c-shared -o ui/windows/libpolaris.dll ./cmd/binding
cd ui && flutter build windows