How to install rsrc.exe on Windows

447 Views Asked by At

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

There are 1 best solutions below

0
On

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