go_dreamfactory/cmd/v2/readme.md
2022-08-12 18:53:45 +08:00

35 lines
555 B
Markdown

## install tool
go install fyne.io/fyne/v2/cmd/fyne@latest
## install font
### fyne CLI 打包
fyne bundle msyh.ttc >> bundled.go
-- 打包粗体
fyne bundle -append msyhbd.ttc >> bundled.go
(不要使用powershell 或vscode自带终端)
## icon
1.
将静态资源编译为 go 文件
fyne bundle fav.png >> bundled.go
如果是要追加资源
fyne bundle -append image2.jpg >> bundled.go
2.
a := app.New()
a.SetIcon(resourceFavPng)
## package
fyne package --name robotGUI-1.0.1 -os windows -icon Icon.png
## 开发协议参数表单
1.
2.
3.