Hacker News new | ask | show | jobs
by beardog 1269 days ago
Don't forget how much of a pain packaging apps for end users is. There are helpful tools out there for it, but nothing that comes close to the ease of Go's default static builds that I have found.
1 comments

> the ease of Go's default static builds that I have found

Seconded.

These are examples [1] of the scripts that I use on Linux, MacOS, and Windows for producing cross-platform builds. Run the one for the platform you're on, and it will produce stand-alone builds for all the targets (Linux, Windows, MacOS Intel, and MacOS ARM). And the builds are small enough that in many cases for simple tools I commit them straight into the repo for easier usage.

[1] https://github.com/kcartlidge/ng/tree/main/src/scripts