2.1版本gf build命令没有进行pack打包
(1)gf build没有自动执行pack (2)手动pack文件到internal/packed/data.go,然后执行gf build,将编译后的可执行文件在同环境的新设备运行,结果无法运行,原因是manifest和resource的文件找不到。
config.yaml配置如下
gfcli:
build:
name: "gfCms"
arch: "amd64"
system: "linux"
mod: "none"
cgo: 0
pack: "manifest/config,manifest/i18n,resource/public,resource/template"
version: ""
output: "./bin"
extra: ""