changed build script
This commit is contained in:
parent
a1b5bebacc
commit
81abb88317
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd ../server
|
||||
go get && make build
|
||||
go get && ./build
|
||||
|
||||
cd ../client
|
||||
npm install && npm run build
|
||||
|
7
server/Makefile → server/build
Normal file → Executable file
7
server/Makefile → server/build
Normal file → Executable file
@ -1,9 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
BUILD_TIME=`date -u +'%Y-%m-%dT%H:%M:%SZ'`
|
||||
GIT_COMMIT=`git rev-parse --short HEAD`
|
||||
GIT_BRANCH=`git rev-parse --symbolic-full-name --abbrev-ref HEAD`
|
||||
GIT_DIRTY=`git diff-index --quiet HEAD -- || echo "✗-"`
|
||||
|
||||
LDFLAGS=-ldflags "-s -X version.buildTime=${BUILD_TIME} -X version.gitRevision=${GIT_DIRTY}${GIT_REVISION} -X version.gitBranch=${GIT_BRANCH}"
|
||||
|
||||
build:
|
||||
go build -o bin/neko ${LDFLAGS} -i cmd/neko/main.go
|
||||
go build -o bin/neko -ldflags "-s -X version.buildTime=${BUILD_TIME} -X version.gitRevision=${GIT_DIRTY}${GIT_REVISION} -X version.gitBranch=${GIT_BRANCH}" -i cmd/neko/main.go
|
Reference in New Issue
Block a user