使用akavel rsrc工具

huangapple go评论83阅读模式
英文:

Using the akavel rsrc tool

问题

基本上,我正在按照这个教程进行操作:
https://gowalker.org/github.com/lxn/walk

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

rsrc : 术语'rsrc'不被识别为 cmdlet、函数、脚本文件或可操作的程序的名称。
请检查名称的拼写,或者如果包含路径,请验证路径是否正确,然后重试。

我已经运行了go get命令,并且该包位于goprojects文件夹中,我只是将清单的名称从'test.manifest'更改为'windowService.manifest',但是这个更改已经在命令中更新了,我不认为这是我的错误?

如果您能对此提供任何帮助,我将非常感激,因为谷歌似乎没有返回任何有关这个特定工具的有用信息!

英文:

Basically I am following this tutorial:
https://gowalker.org/github.com/lxn/walk

But when it comes to building the manifest file into a .syso file using the akavel rsrc tool I am running into the following error:

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.

I have run the go get and the package is in the goprojects folder and I am only changing the make of the manifest from 'test.manifest' to windowService.manifest' but this is updated in the command and I don't think this is my error?

IF you could shed any light on this I would be grateful as google doesn't seem to return anything helpful to this tool specifically!

答案1

得分: 2

一个更简单的方法是使用你的 %GOPATH% 环境变量。

这样做可以避免我在编译清单文件到 bin 文件时遇到的小问题。

%GOPATH%\bin\rsrc.exe -manifest file.manifest -o rsrc.syso

英文:

An easier way to do what @JackFrost mentioned is to use your %GOPATH% environment variable.

This saved me a small headache from compiling my manifest file in the bin file.

%GOPATH%\bin\rsrc.exe -manifest file.manifest -o rsrc.syso

答案2

得分: 1

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

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

对我来说是'C:\GoProjects\bin'

2)运行以下命令:

.\rsrc.exe -manifest '*PATHTOMANIFESTLOCATION*' -o rsrc.syso

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

英文:

If anyone runs into the same error you need to actually run the rsrc, so for me the steps were:

  1. Navigate in command line to the location of rsrc.exe:

For me it was 'C:\GoProjects\bin'

  1. Run the command:

    .\rsrc.exe -manifest 'PATHTOMANIFESTLOCATION' -o rsrc.syso

  2. Copy the rsrc.syso file back to the location of my goproject before running go build.

huangapple
  • 本文由 发表于 2015年12月11日 23:08:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/34226565.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定