mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-06-14 19:46:05 +00:00
Add version file
This commit is contained in:
@ -14,7 +14,7 @@ PKGBRANCH=$(basename `git name-rev --name-only HEAD`)
|
||||
if [ "$PKGBRANCH" = "master" ]; then PKGNAME=yggdrasil
|
||||
else PKGNAME=yggdrasil-${PKGBRANCH}; fi
|
||||
PKGARCH=${PKGARCH-amd64}
|
||||
PKGVERSION=0.$(git rev-list HEAD --count 2>/dev/null | xargs printf "%04d")
|
||||
PKGVERSION=$(cat VERSION).$(git rev-list HEAD --count 2>/dev/null | xargs printf "%04d")
|
||||
PKGFILE=$PKGNAME-$PKGVERSION-$PKGARCH.deb
|
||||
|
||||
if [ $PKGARCH = "amd64" ]; then GOARCH=amd64 GOOS=linux ./build
|
||||
|
Reference in New Issue
Block a user