diff --git a/godist.sh b/godist.sh index 9adf029..755d723 100644 --- a/godist.sh +++ b/godist.sh @@ -97,7 +97,7 @@ single_build() { # Build. # GOARCH/GOOS supplied in function env - go build -a -ldflags '-s -w' -o "$(pathfix "${tmpdir}/${local_bin_name}")" + go build -a "-X main.APP_VERSION=${version}" -ldflags '-s -w' -o "$(pathfix "${tmpdir}/${local_bin_name}")" # Sanitise. sanitise "${tmpdir}/${local_bin_name}" diff --git a/typedefs.go b/typedefs.go index c7c2c3c..4a580e3 100644 --- a/typedefs.go +++ b/typedefs.go @@ -19,7 +19,7 @@ along with this program. If not, see . */ const ( - APP_VERSION = "1.1.0" + APP_VERSION = "1.x.x-dev" APP_NAME = "nmdc-ircfrontend" BLESSED_CHANNEL = "#chat" // must be lowercase BLESSED_CHANNEL_MODE = "n" // means that you have to be in the channel to chat, but that's it