Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
wander committed Jul 28, 2021
1 parent cf886a0 commit 35f9601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env bash
set -x
lastTag=$(git describe --tags `git rev-list --tags --max-count=1`)
goVersion=$(go version | awk '{print $3'})
versionFile=./version/version.go
release=bin
echo $lastTag
echo $goVersion
rm -f $release/*
# 更新版本号
sed -i '' "s/const Version = \"*.*.*\"/const Version = \"$lastTag\"/" ${versionFile}

Expand Down

0 comments on commit 35f9601

Please sign in to comment.