Go 使用akavel rsrc工具
基本上,我遵循本教程: 但在使用akavel rsrc工具将清单文件构建为.syso文件时,我遇到了以下错误:Go 使用akavel rsrc工具,go,manifest,rsrc,Go,Manifest,Rsrc,基本上,我遵循本教程: 但在使用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
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.
我已经运行了go get,包在goprojects文件夹中,我只是将清单的样式从“test.manifest”更改为“WindowsService.manifest”,但这在命令中已更新,我不认为这是我的错误
如果你能解释一下这一点,我将不胜感激,因为谷歌似乎没有返回任何有助于此工具的具体信息 如果有人遇到相同的错误,您需要实际运行rsrc,因此对我来说,步骤如下: 1) 在命令行中导航到rsrc.exe的位置: 对我来说是“C:\GoProjects\bin” 2) 运行以下命令:
.\rsrc.exe -manifest '*PATHTOMANIFESTLOCATION*' -o rsrc.syso
3) 在运行go build之前,将rsrc.syso文件复制回my goproject的位置。执行@JackFrost提到的操作的一个更简单的方法是使用%GOPATH%环境变量 这为我在bin文件中编译清单文件省去了一点麻烦
%GOPATH%\bin\rsrc.exe-manifest file.manifest-o rsrc.syso
看起来好像rsrc
不在您的路径中感谢这是错误!