feat: build windows dll and call dll in flutter

This commit is contained in:
Simon Ding
2025-04-10 14:24:46 +08:00
parent 5ab347845a
commit 6371139607
14 changed files with 95 additions and 11 deletions

View File

@@ -1,11 +1,21 @@
package main
import "C"
import "polaris/cmd"
import (
"os"
"polaris/cmd"
"polaris/log"
)
func main() {}
//export Start
func Start() {
cmd.Start()
cmd.Start(true)
}
//export Stop
func Stop() {
log.Infof("stop polaris")
os.Exit(0)
}