mirror of
https://github.com/onyx-and-iris/q3rcon-proxy.git
synced 2026-04-06 23:33:30 +00:00
add --version flag
ensure version is injected at build time in Taskfile/makefile
This commit is contained in:
2
Makefile
2
Makefile
@@ -6,7 +6,7 @@ BIN_DIR := bin
|
||||
WINDOWS=$(BIN_DIR)/$(PROGRAM)_windows_amd64.exe
|
||||
LINUX=$(BIN_DIR)/$(PROGRAM)_linux_amd64
|
||||
MACOS=$(BIN_DIR)/$(PROGRAM)_darwin_amd64
|
||||
VERSION=$(shell git log -n 1 --format=%h)
|
||||
VERSION=$(shell git describe --tags $(shell git rev-list --tags --max-count=1))
|
||||
|
||||
.DEFAULT_GOAL := build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user