Correct invalid conditional check in release-tool

This commit is contained in:
Jonathan White
2019-03-19 21:12:39 -04:00
parent c51752df39
commit e909d1b594

View File

@@ -810,10 +810,6 @@ build() {
shift shift
done done
if [[ ${build_appsign} && ! -f ${build_key} ]]; then
exitError "--appsign specified with invalid key file\n"
fi
init init
OUTPUT_DIR="$(realpath "$OUTPUT_DIR")" OUTPUT_DIR="$(realpath "$OUTPUT_DIR")"
@@ -908,7 +904,7 @@ build() {
make ${MAKE_OPTIONS} package make ${MAKE_OPTIONS} package
# Appsign the executables if desired # Appsign the executables if desired
if [[ ${build_appsign} ]]; then if ${build_appsign}; then
logInfo "Signing executable files" logInfo "Signing executable files"
appsign "-f" "./${APP_NAME}-${RELEASE_NAME}.dmg" "-k" "${build_key}" appsign "-f" "./${APP_NAME}-${RELEASE_NAME}.dmg" "-k" "${build_key}"
fi fi
@@ -924,7 +920,7 @@ build() {
mingw32-make ${MAKE_OPTIONS} preinstall mingw32-make ${MAKE_OPTIONS} preinstall
# Appsign the executables if desired # Appsign the executables if desired
if [[ ${build_appsign} ]]; then if ${build_appsign} && [ -f ${build_key} ]; then
logInfo "Signing executable files" logInfo "Signing executable files"
appsign "-f" $(find src | grep -P '\.exe$|\.dll$') "-k" "${build_key}" appsign "-f" $(find src | grep -P '\.exe$|\.dll$') "-k" "${build_key}"
fi fi