How to install rsrc.exe on Windows

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

How to install rsrc.exe on Windows

问题

我正在尝试为我的golang应用程序设置一个GUI,使用的是这个库:https://github.com/lxn/walk,但是我在编译清单的步骤上遇到了问题:

go get github.com/akavel/rsrc
rsrc -manifest test.manifest -o rsrc.syso

在第二个命令中,我遇到了这个错误:

bash: rsrc: command not found

这是可以理解的-我在我的操作系统上没有安装这个命令,但问题是,我不知道如何安装它。在这种情况下,谷歌/必应搜索完全无用,因为它只会将我重定向到rsrc工具的GitHub页面:rsrc工具

那个页面说明了安装命令是"go get github.com/akavel/rsrc",但这对我来说没有意义-"go get"只是为我的项目获取一个包,它不是用来在我的操作系统上安装任何东西的。我是不是漏掉了什么?

可能我只是要使用另一个框架,但我真的很好奇,为什么这个框架不起作用。

英文:

I'm trying to set up a GUI for my golang app, using this:

https://github.com/lxn/walk

but I'm stuck on the step to compile the manifest:

go get github.com/akavel/rsrc
rsrc -manifest test.manifest -o rsrc.syso

On the second command, I get this error:

bash: rsrc: command not found

This is totally understandable - I don't have such command installed on my OS, but the problem is, I don't know how to install it. Google/bing search is totally useless in this case, since it just directs me to the rsrc tool github page:

rsrc tool

And that page states, that installation command is "go get github.com/akavel/rsrc", but it makes no sense to me - "go get" only gets a package for my project, it is not meant to install anything on my OS. Am I missing something?

Likely, I'm just going to use another framework, but I'm really curious, why doesn't this one work.

答案1

得分: 1

根据评论中所述,go get命令在几年前用于安装软件,但现在已不再使用。

要安装rsrc,请执行以下操作:

go install -v github.com/akavel/rsrc@latest
英文:

As stated in the comments, go get command used to install things a few years back, but it no longer does.

To install rsrc, do:

go install -v github.com/akavel/rsrc@latest

huangapple
  • 本文由 发表于 2023年4月1日 16:27:42
  • 转载请务必保留本文链接:https://go.coder-hub.com/75905019.html
匿名

发表评论

匿名网友

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

确定