使用 akavel rsrc 工具

Jac*_*ost 5 rsrc manifest go

基本上我正在关注本教程:https : //gowalker.org/github.com/lxn/walk

但是当谈到使用 akavel rsrc 工具将清单文件构建到 .syso 文件时,我遇到了以下错误:

rsrc : The term 'rsrc' is not recognized as the name of a cmdlet, function, script file, or operable program. 
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Run Code Online (Sandbox Code Playgroud)

我已经运行了 go get 并且包在 goprojects 文件夹中,我只是将清单的制作从“test.manifest”更改为 windowService.manifest”,但这已在命令中更新,我认为这不是我的错误?

如果您能对此有所了解,我将不胜感激,因为 google 似乎没有专门返回对这个工具有帮助的任何东西!

Jac*_*ost 1

如果有人遇到同样的错误,您需要实际运行 rsrc,所以对我来说,步骤是:

1) 在命令行中导航到 rsrc.exe 的位置:

对我来说是“C:\GoProjects\bin”

2)运行命令:

.\rsrc.exe -manifest '*PATHTOMANIFESTLOCATION*' -o rsrc.syso
Run Code Online (Sandbox Code Playgroud)

3) 在运行 go build 之前将 rsrc.syso 文件复制回我的 goproject 的位置。