update makefile
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/docker-unstable Pipeline was successful

This commit is contained in:
Adora Laura Kalb 2024-10-29 13:21:36 +01:00
parent f15cfff8ad
commit 64593a6987
Signed by: adoralaura
SSH key fingerprint: SHA256:3XrkbR8ikAZJVtYfaUliX1MhmJYVAe/ocIb/MiDHBJ8
2 changed files with 13 additions and 8 deletions

View file

@ -1,9 +1,14 @@
BINARY_NAME=humble-bot # Set the default Go build flags
default: build #GOFLAGS = -ldflags='-w -s -X cmd.Version=$(VERSION)'
GOFLAGS = -ldflags='-w -s'
# Build the application
build: build:
go build -o ${BINARY_NAME} main.go go build $(GOFLAGS) -o bin/humble-bot main.go
# Clean the build artifacts
clean: clean:
go clean rm -rf bin
rm ${BINARY_NAME}
# Set a version for the build
VERSION := $(shell git describe --tags --always)

View file

@ -6,7 +6,7 @@
package constants package constants
var AppVersion = "0.2.1" var AppVersion string
var HumbleCategories = []string{"games", "books", "software"} var HumbleCategories = []string{"games", "books", "software"}