From 7f3c33c57e410d79e7e937bb29f03b0ef3467e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xos=C3=A9?= Date: Thu, 22 Oct 2026 08:43:00 +0200 Subject: [PATCH] build.sh: test that javac runs (macOS's /usr/bin/javac is only a placeholder) Co-Authored-By: Claude Opus 5.5 --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index b05ba1f..31431d8 100755 --- a/build.sh +++ b/build.sh @@ -17,7 +17,7 @@ if [ -z "${D8:-}" ] && [ -f "$CT/d8.jar" ]; then D8="java -cp $CT/d8.jar com.and D8=${D8:-d8} if [ -z "${APKTOOL:-}" ] && [ -f "$CT/apktool_2.9.3.jar" ]; then APKTOOL=$CT/apktool_2.9.3.jar; fi if [ -z "${APKSIGNER:-}" ] && [ -f "$CT/apksigner.jar" ]; then APKSIGNER=$CT/apksigner.jar; fi -if ! command -v javac >/dev/null 2>&1; then +if ! javac -version >/dev/null 2>&1; then # macOS has a /usr/bin/javac that only says Java is missing for j in "${JAVA_HOME:-}" /opt/homebrew/opt/openjdk@17 /opt/homebrew/opt/openjdk; do if [ -n "$j" ] && [ -x "$j/bin/javac" ]; then JAVA_HOME=$j; PATH=$j/bin:$PATH; export JAVA_HOME PATH; break; fi done