mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-09 19:47:47 +08:00
feat: go build to dll
This commit is contained in:
6
Makefile
Normal file
6
Makefile
Normal 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
|
||||||
@@ -1,11 +1,8 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import "C"
|
import "C"
|
||||||
import (
|
import "polaris/cmd"
|
||||||
"polaris/db"
|
|
||||||
"polaris/log"
|
|
||||||
"polaris/server"
|
|
||||||
)
|
|
||||||
func main() {}
|
func main() {}
|
||||||
|
|
||||||
//export Start
|
//export Start
|
||||||
|
|||||||
1
ui/.gitignore
vendored
1
ui/.gitignore
vendored
@@ -41,3 +41,4 @@ app.*.map.json
|
|||||||
/android/app/debug
|
/android/app/debug
|
||||||
/android/app/profile
|
/android/app/profile
|
||||||
/android/app/release
|
/android/app/release
|
||||||
|
windows/libpolaris.h
|
||||||
Reference in New Issue
Block a user