fix: server mobile CI — Java paths, monorepo Podfile

Jenkins/서버에서 brew OpenJDK·Android SDK 경로를 사용하고, npm workspace
루트의 Capacitor iOS 의존성을 Podfile이 참조하도록 수정한다.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Macbook
2026-06-14 16:40:58 +09:00
parent 7611146cbf
commit 7c4fc00b37
4 changed files with 20 additions and 6 deletions
+8 -1
View File
@@ -31,7 +31,7 @@ sign_release_apk() {
local apksigner
apksigner="${ANDROID_HOME:-$HOME/Library/Android/sdk}/build-tools/35.0.0/apksigner"
if [[ ! -x "$apksigner" ]]; then
apksigner=$(command -v apksigner 2>/dev/null || true)
apksigner=$(ls -d "${ANDROID_HOME:-$HOME/Library/Android/sdk}"/build-tools/*/apksigner 2>/dev/null | sort -V | tail -1 || true)
fi
if [[ -z "$apksigner" || ! -x "$apksigner" ]]; then
echo "apksigner 없음. Android SDK build-tools 설치 필요." >&2
@@ -49,6 +49,13 @@ sign_release_apk() {
if [[ -z "${JAVA_HOME:-}" ]] && [[ -x "$HOME/.local/jdk-21.0.11+10/Contents/Home/bin/java" ]]; then
export JAVA_HOME="$HOME/.local/jdk-21.0.11+10/Contents/Home"
fi
if [[ -z "${JAVA_HOME:-}" ]] && [[ -x "/opt/homebrew/opt/openjdk@21/libexec/openjdk.jdk/Contents/Home/bin/java" ]]; then
export JAVA_HOME="/opt/homebrew/opt/openjdk@21/libexec/openjdk.jdk/Contents/Home"
fi
if [[ -z "${JAVA_HOME:-}" ]] && command -v /usr/libexec/java_home >/dev/null 2>&1; then
JAVA_HOME="$(/usr/libexec/java_home 2>/dev/null || true)"
[[ -n "$JAVA_HOME" ]] && export JAVA_HOME
fi
if [[ -z "${JAVA_HOME:-}" ]]; then
echo "JAVA_HOME 미설정" >&2
exit 1