Skip to content

Commit

Permalink
build: 👷 add ldflags to reduce binary size
Browse files Browse the repository at this point in the history
Remove debug info.
  • Loading branch information
rangzen committed Jul 2, 2024
1 parent fee78b8 commit b5877a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ build-templ:
@templ generate

build-server:
@go build -o bin/gotth-top ./cmd/gotth-top/main.go
@go build -ldflags="-s -w" -o bin/gotth-top ./cmd/gotth-top/main.go

.DEFAULT_GOAL := dev

0 comments on commit b5877a2

Please sign in to comment.