Update winpack.sh

This commit is contained in:
John Zhao 2018-11-05 16:14:32 +08:00
parent 6a15a87782
commit 21a54a4637

View File

@ -132,11 +132,13 @@ mv "$ROOT_DIR/_install" "$ROOT_DIR/$_pkgname"
makensis "$ROOT_DIR/winpack.nsi" makensis "$ROOT_DIR/winpack.nsi"
if _detect_cmd git; then
_git_branch=`git symbolic-ref --short -q HEAD` _git_branch=`git symbolic-ref --short -q HEAD`
if [ "$_git_branch" == "develop" ]; then if [ "$_git_branch" == "develop" ]; then
_git_hash=`git rev-parse --short HEAD` _git_hash=`git rev-parse --short HEAD`
mv "$ROOT_DIR/$_pkgname.exe" "$ROOT_DIR/$_pkgname-dev-$_git_hash.exe" mv "$ROOT_DIR/$_pkgname.exe" "$ROOT_DIR/$_pkgname-dev-$_git_hash.exe"
fi fi
fi
mv "$ROOT_DIR/$_pkgname" "$ROOT_DIR/_install" mv "$ROOT_DIR/$_pkgname" "$ROOT_DIR/_install"