feat: implement desktop app structure with API base URL handling and bindings for Wails integration

This commit is contained in:
wizardchen
2026-04-11 12:35:25 +08:00
committed by lyingbug
parent 5c4229745d
commit 52bdfd388a
11 changed files with 206 additions and 26 deletions
+17
View File
@@ -0,0 +1,17 @@
//go:build bindings
package main
import (
"github.com/wailsapp/wails/v2"
"github.com/wailsapp/wails/v2/pkg/options"
)
// Wails「生成绑定」阶段使用 -tags bindings 单独编译本文件,不启动 Gin/数据库,避免依赖本机 Postgres。
func main() {
app := NewApp()
_ = wails.Run(&options.App{
Title: "WeKnora Lite",
Bind: []interface{}{app},
})
}