Build script

This commit is contained in:
Teajey 2025-12-07 18:11:11 +09:00
parent c997908d3c
commit 9c9e0ebaff
Signed by: Teajey
GPG Key ID: 970E790FE834A713
1 changed files with 7 additions and 0 deletions

7
http/build-prod.sh Executable file
View File

@ -0,0 +1,7 @@
top_level=$(git rev-parse --show-toplevel)
git_version=$($top_level/scripts/git-version)
export GOOS=linux
export GOARCH=amd64
go build -ldflags=-X=lishwist/http/env.GitVersion=$git_version .