mirror of
https://github.com/simon-ding/polaris.git
synced 2026-03-13 13:10:46 +08:00
feat: build windows dll and call dll in flutter
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user