diff --git a/build.sh b/build.sh index b9d49f7..f3629b8 100755 --- a/build.sh +++ b/build.sh @@ -1306,3 +1306,9 @@ if $DO_LINUX || $DO_WIN || $DO_MAC; then [[ -d "$SCRIPT_DIR/release/windows" ]] && echo -e " ${CYAN}windows/${NC} — .exe + .zip" [[ -d "$SCRIPT_DIR/release/mac" ]] && echo -e " ${CYAN}mac/${NC} — .app + .dmg" fi + +# Reaching here means the build completed (real failures exit 1 at their point of failure). +# Exit 0 explicitly: the final `[[ -d release/mac ]] && echo` above returns non-zero on a +# non-mac build — and since set -e exempts the left side of an &&, that status would otherwise +# become the script's exit code and make a successful build report failure (e.g. to CI). +exit 0