mirror of
https://github.com/simon-ding/polaris.git
synced 2026-02-06 15:10:49 +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
|
||||
|
||||
import "C"
|
||||
import (
|
||||
"polaris/db"
|
||||
"polaris/log"
|
||||
"polaris/server"
|
||||
)
|
||||
import "polaris/cmd"
|
||||
|
||||
func main() {}
|
||||
|
||||
//export Start
|
||||
|
||||
1
ui/.gitignore
vendored
1
ui/.gitignore
vendored
@@ -41,3 +41,4 @@ app.*.map.json
|
||||
/android/app/debug
|
||||
/android/app/profile
|
||||
/android/app/release
|
||||
windows/libpolaris.h
|
||||
Reference in New Issue
Block a user