fix(android): APK 构建设置 VITE_API_BASE 为后端绝对地址
Tauri Android 页面源是 http://tauri.localhost, 相对 /api 会打到内嵌 资源服务而非后端。明文 HTTP 已由 android-signing.sh 放行 (usesCleartextTraffic=true)
This commit is contained in:
@@ -16,6 +16,9 @@ jobs:
|
||||
env:
|
||||
# 固定工具链版本, 便于 actions/cache 命中
|
||||
NDK_VERSION: '27.2.12479018'
|
||||
# APP (Tauri Android) 页面源是 http://tauri.localhost, 相对 /api 会打到内嵌资源服务,
|
||||
# 必须用绝对地址指向后端。明文 HTTP 已由 android-signing.sh 放行 (usesCleartextTraffic=true)。
|
||||
VITE_API_BASE: 'http://bh.vps.honor3.com:3002'
|
||||
# libduckdb-sys 0.10.2 build.rs 同时添加 -stdlib=libc++ 和 -stdlib=libstdc++,
|
||||
# 在 clang 上两者都被支持, libstdc++ 覆盖 libc++ 成为生效选项, 但 NDK 不含 libstdc++ 头文件,
|
||||
# 导致 fatal error: 'string' file not found. 设置 CXXFLAGS 确保 -stdlib=libc++ 为最终生效值
|
||||
|
||||
Reference in New Issue
Block a user