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,10 +132,12 @@ mv "$ROOT_DIR/_install" "$ROOT_DIR/$_pkgname"
makensis "$ROOT_DIR/winpack.nsi" makensis "$ROOT_DIR/winpack.nsi"
_git_branch=`git symbolic-ref --short -q HEAD` if _detect_cmd git; then
if [ "$_git_branch" == "develop" ]; then _git_branch=`git symbolic-ref --short -q HEAD`
_git_hash=`git rev-parse --short HEAD` if [ "$_git_branch" == "develop" ]; then
mv "$ROOT_DIR/$_pkgname.exe" "$ROOT_DIR/$_pkgname-dev-$_git_hash.exe" _git_hash=`git rev-parse --short HEAD`
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"