diff --git a/scripts/build-tauri-android.sh b/scripts/build-tauri-android.sh index e28a440..b633e23 100755 --- a/scripts/build-tauri-android.sh +++ b/scripts/build-tauri-android.sh @@ -203,10 +203,13 @@ fi # wzp-native/build.rs uses cpp_link_stdlib(Some("c++_shared")) which adds # a NEEDED entry for libc++_shared.so to libwzp_native.so. cargo-ndk does # NOT copy the actual libc++_shared.so into jniLibs, so unless we copy it -# explicitly, the APK ships without it and Android's dynamic linker fails -# the dlopen with "library libc++_shared.so not found" at runtime. Same -# fix that build-and-notify.sh has had for the legacy wzp-android path -# (lines 126-134 there) — ported here for the Tauri pipeline. +# explicitly, the APK ships without it and the Android dynamic linker +# fails the dlopen with "library libc++_shared.so not found" at runtime. +# Same fix that build-and-notify.sh has had for the legacy wzp-android +# path (lines 126-134 there) — ported here for the Tauri pipeline. +# NOTE: no apostrophes in this comment block. The enclosing docker +# bash -c uses single quotes and a stray apostrophe closes the string +# prematurely, breaking variable scope for everything below. if [ ! -f "$JNI_ABI_DIR/libc++_shared.so" ]; then echo ">>> libc++_shared.so missing, copying from NDK..." NDK_LIBCXX=$(find "$ANDROID_NDK_HOME" -name "libc++_shared.so" -path "*/aarch64-linux-android/*" | head -1)