This commit is contained in:
parent
3ae9f2afa2
commit
1f27512017
@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
GO = $(which go)
|
||||
export GO=$(which go)
|
||||
$GO version
|
||||
|
||||
mkdir build
|
||||
|
||||
@ -13,10 +14,10 @@ export VERSION_STRING
|
||||
|
||||
buildpath="build/$(uname)/gostations"
|
||||
|
||||
${GO} mod vendor
|
||||
${GO} mod tidy
|
||||
$GO mod vendor
|
||||
$GO mod tidy
|
||||
|
||||
${GO} build -o "$buildpath" -ldflags "-X main.version=$VERSION_STRING"
|
||||
$GO build -o "$buildpath" -ldflags "-X main.version=$VERSION_STRING"
|
||||
|
||||
"$buildpath" -v
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user