auto generate version from git, close #11

master
codeskyblue 8 years ago
parent 09d70819f3
commit 8baaa6fa89

@ -5,4 +5,4 @@ includes: []
excludes:
- \.git
script:
- go build -tags bindata
- go build -tags bindata -ldflags "-X main.Version=$(git describe --tags --dirty --always)"

@ -36,11 +36,12 @@ then
fi
# TODO: Replace app_xxx with correct application ID
V=$(git describe --tags --dirty --always)
./equinox release \
--channel="$CHANNEL" \
--version="$VERSION" \
--app="app_8Gji4eEAdDx" \
--platforms="darwin_amd64 linux_amd64 linux_386" \
--platforms="darwin_amd64 linux_amd64" \
--signing-key="equinox.key" \
--token="$EQUINOX_API_TOKEN" \
-- -tags bindata -ldflags "-X main.Version=$TRAVIS_COMMIT"
-- -tags bindata -ldflags "-X main.Version=$V"

Loading…
Cancel
Save