From f3836460339d30ba7cc6c0c6dd08cf9e38fd9467 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Mon, 7 May 2018 21:41:42 +0300 Subject: [PATCH] Fix UEFITool path on Linux --- unixbuild.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/unixbuild.sh b/unixbuild.sh index d54b077..1b545fb 100755 --- a/unixbuild.sh +++ b/unixbuild.sh @@ -58,9 +58,14 @@ build_tool() { make || exit 1 # Archive - if [ "$1" = "UEFITool" ] && [ "$UPLATFORM" = "mac" ]; then - strip -x UEFITool.app/Contents/MacOS/UEFITool || exit 1 - zip -qry dist/"${1}_${2}_${UPLATFORM}.zip" UEFITool.app "${4}" || exit 1 + if [ "$1" = "UEFITool" ]; then + if [ "$UPLATFORM" = "mac" ]; then + strip -x UEFITool.app/Contents/MacOS/UEFITool || exit 1 + zip -qry dist/"${1}_${2}_${UPLATFORM}.zip" UEFITool.app "${4}" || exit 1 + else + strip -x "$1" || exit 1 + zip -qry dist/"${1}_${2}_${UPLATFORM}.zip" "${1}" "${4}" || exit 1 + fi else strip -x "$1" || exit 1 zip -qry ../dist/"${1}_${2}_${UPLATFORM}.zip" "${1}" "${4}" || exit 1