7a4133773c
把 Wails 壳从编译不过的桩做成能启动的原生桌面应用。 - main.go: 真实 Wails v2 入口(import wails + assetserver + AssetServer 嵌入 dist + 深色背景 #0b0d12 + OnStartup + Bind) - app.go: App.startup 注入 ctx; ReadLocalFile 做真(os.ReadFile, 本地文件 I/O) + Ping 探活 - go.mod: GOWORK=off go mod tidy 拉全 wails v2.12 依赖树 - Makefile: desktop=GOWORK=off wails dev(原生窗口热重载); desktop-build=wails build(打包.app) — 用 GOWORK=off 让自包含的 desktop 独立构建,不污染后端 go.work - .gitignore: 忽略 wails 生成物(build/ wailsjs/ package.json.md5) - 验证: go build 出 5.7MB 原生二进制(含 webkit cgo); wails build 全过 → build/bin/sundynix_desktop.app(生成绑定/编译前端/编译应用/打包/自签名) - 运行: make desktop(开发窗口) 或 make desktop-build(打包); 桌面端前端经 HTTP 连 Gateway:8080(CORS 已放开), 需先起后端 + 配模型 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
37 lines
1.4 KiB
Modula-2
37 lines
1.4 KiB
Modula-2
module github.com/sundynix/sundynix-desktop
|
|
|
|
go 1.23
|
|
|
|
require github.com/wailsapp/wails/v2 v2.12.0
|
|
|
|
require (
|
|
git.sr.ht/~jackmordaunt/go-toast/v2 v2.0.3 // indirect
|
|
github.com/bep/debounce v1.2.1 // indirect
|
|
github.com/go-ole/go-ole v1.3.0 // indirect
|
|
github.com/godbus/dbus/v5 v5.1.0 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/gorilla/websocket v1.5.3 // indirect
|
|
github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e // indirect
|
|
github.com/labstack/echo/v4 v4.13.3 // indirect
|
|
github.com/labstack/gommon v0.4.2 // indirect
|
|
github.com/leaanthony/go-ansi-parser v1.6.1 // indirect
|
|
github.com/leaanthony/gosod v1.0.4 // indirect
|
|
github.com/leaanthony/slicer v1.6.0 // indirect
|
|
github.com/leaanthony/u v1.1.1 // indirect
|
|
github.com/mattn/go-colorable v0.1.13 // indirect
|
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
|
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
|
|
github.com/pkg/errors v0.9.1 // indirect
|
|
github.com/rivo/uniseg v0.4.7 // indirect
|
|
github.com/samber/lo v1.49.1 // indirect
|
|
github.com/tkrajina/go-reflector v0.5.8 // indirect
|
|
github.com/valyala/bytebufferpool v1.0.0 // indirect
|
|
github.com/valyala/fasttemplate v1.2.2 // indirect
|
|
github.com/wailsapp/go-webview2 v1.0.22 // indirect
|
|
github.com/wailsapp/mimetype v1.4.1 // indirect
|
|
golang.org/x/crypto v0.33.0 // indirect
|
|
golang.org/x/net v0.35.0 // indirect
|
|
golang.org/x/sys v0.30.0 // indirect
|
|
golang.org/x/text v0.22.0 // indirect
|
|
)
|