Update winpack.sh
This commit is contained in:
parent
6a15a87782
commit
21a54a4637
|
@ -132,10 +132,12 @@ mv "$ROOT_DIR/_install" "$ROOT_DIR/$_pkgname"
|
|||
|
||||
makensis "$ROOT_DIR/winpack.nsi"
|
||||
|
||||
_git_branch=`git symbolic-ref --short -q HEAD`
|
||||
if [ "$_git_branch" == "develop" ]; then
|
||||
_git_hash=`git rev-parse --short HEAD`
|
||||
mv "$ROOT_DIR/$_pkgname.exe" "$ROOT_DIR/$_pkgname-dev-$_git_hash.exe"
|
||||
if _detect_cmd git; then
|
||||
_git_branch=`git symbolic-ref --short -q HEAD`
|
||||
if [ "$_git_branch" == "develop" ]; then
|
||||
_git_hash=`git rev-parse --short HEAD`
|
||||
mv "$ROOT_DIR/$_pkgname.exe" "$ROOT_DIR/$_pkgname-dev-$_git_hash.exe"
|
||||
fi
|
||||
fi
|
||||
|
||||
mv "$ROOT_DIR/$_pkgname" "$ROOT_DIR/_install"
|
||||
|
|
Loading…
Reference in New Issue
Block a user