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

View File

@@ -1,11 +1,8 @@
package main
import "C"
import (
"polaris/db"
"polaris/log"
"polaris/server"
)
import "polaris/cmd"
func main() {}
//export Start

1
ui/.gitignore vendored
View File

@@ -41,3 +41,4 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release
windows/libpolaris.h