rsrc
If your application is built using Walk or another Windows-specific toolkit, you may consider the rsrc tool. rsrc is used to bundle manifest files and icon files within an executable file. The process involves running the tool to generate a .syso file, which is then compiled into the final binary output when running go build. This is the same process described in Chapter 4, Walk – Building Graphical Windows Applications, for embedding the applications manifest file. We also use the tool later in this chapter to embed an application icon for distributing to Windows.
To package icons into the application, you can run rsrc -ico myicon.ico,anothericon.ico, and then re-build your app. Resources embedded in this way can be accessed using ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access