浏览代码

commit core.go after updating version

v2ray 9 年之前
父节点
当前提交
3e4bdc4b0c
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      tools/release/make-release.sh

+ 2 - 1
tools/release/make-release.sh

@@ -18,8 +18,9 @@ VERN=${MAJOR}.${MINOR}
 pushd $GOPATH/src/github.com/v2ray/v2ray-core
 pushd $GOPATH/src/github.com/v2ray/v2ray-core
 echo "Adding a new tag: " "v$VER"
 echo "Adding a new tag: " "v$VER"
 git tag -s -a "v$VER" -m "$MSG"
 git tag -s -a "v$VER" -m "$MSG"
-echo "Commiting core.go (may not necessary)"
 sed -i '' "s/\(version *= *\"\).*\(\"\)/\1$VERN\2/g" core.go
 sed -i '' "s/\(version *= *\"\).*\(\"\)/\1$VERN\2/g" core.go
+echo "Commiting core.go (may not necessary)"
+git commit -S -m "Update version"
 echo "Pushing changes"
 echo "Pushing changes"
 git push --follow-tags
 git push --follow-tags
 popd
 popd