Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 1.06 KB

File metadata and controls

31 lines (26 loc) · 1.06 KB

demo

install

  • go install github.com/codemodify/gobuild@latest

build

customize

  • cd MY-GO-PROJECT
  • gobuild gen
    • generates .gobuild-config file with platforms to remove / add and other tweaks
    • generates .gobuild-version file with the version to set (-X main.version= for -ldflags)
    • generates .gobuild-binary file with the binary file name
    • these files can be added to the source control for custom builds

purpose

  • this is a tool designed for use in projects that

    • don't require custom build setups
    • fast prototyping and distribution for different platforms
  • why to look elsewhere

    • if you need docker/buildx for cross builds in complex scenarios
    • if you use CGO that will use custom APIs (ex: Xlib for linux, and other things for other OSes)
    • custom C/C++ cross-compiler toolchains