auto generate version from git, close #11

master
codeskyblue 8 years ago
parent 09d70819f3
commit 8baaa6fa89

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

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

Loading…
Cancel
Save