This commit is contained in:
parent
1f27512017
commit
c34bdf66f2
@ -1,8 +1,5 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
export GO=$(which go)
|
||||
$GO version
|
||||
|
||||
mkdir build
|
||||
|
||||
GIT_COMMIT=$(git rev-list -1 HEAD)
|
||||
@ -14,10 +11,10 @@ export VERSION_STRING
|
||||
|
||||
buildpath="build/$(uname)/gostations"
|
||||
|
||||
$GO mod vendor
|
||||
$GO mod tidy
|
||||
/usr/local/go/bin/go mod vendor
|
||||
/usr/local/go/bin/go mod tidy
|
||||
|
||||
$GO build -o "$buildpath" -ldflags "-X main.version=$VERSION_STRING"
|
||||
/usr/local/go/bin/go build -o "$buildpath" -ldflags "-X main.version=$VERSION_STRING"
|
||||
|
||||
"$buildpath" -v
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user