go_dreamfactory/cmd/v2
2022-08-18 10:46:13 +08:00
..
lib/common gui 2022-08-18 09:31:24 +08:00
model gui 2022-08-18 09:29:05 +08:00
resources 版本检查 2022-08-12 18:53:45 +08:00
service gui 2022-08-18 09:29:05 +08:00
theme 设置icon 2022-08-11 18:07:12 +08:00
ui update 2022-08-18 10:26:25 +08:00
build.bat package 2022-08-09 18:37:56 +08:00
FyneApp.toml 版本检查 2022-08-12 18:53:45 +08:00
icon.png 设置icon 2022-08-11 18:07:12 +08:00
main.go gui 2022-08-18 09:31:24 +08:00
readme.md update 2022-08-18 10:46:13 +08:00

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

将静态资源编译为 go 文件 fyne bundle fav.png >> bundled.go 如果是要追加资源 fyne bundle -append image2.jpg >> bundled.go

a := app.New() a.SetIcon(resourceFavPng)

package

fyne package --name robotGUI-1.0.1 -os windows -icon Icon.png

开发协议参数表单