示例(命令提示符):
set ANDROID_HOME=C:\Users\你的用户名\AppData\Local\Android\Sdk
克隆 Godot 源码并切换到与编辑器/导出模板相同的版本,因为调试符号必须与你将要发布的构建版本一致 。
git clone https://github.com/godotengine/godot.git
cd godot
git checkout 4.x
在 Godot 源码目录中运行 SCons。Godot 的相关文档也使用 scons 命令编译带调试符号的导出模板 。
对于你列出的标志,如果你的 Godot 版本构建系统支持这些选项,请使用:
scons platform=android target=template_debug generate_android_binaries=yes debug_symbols=yes gradle_do_not_strip=yes
Sentry 文档也指出,可以使用 target=template_debug、platform=android、arch=arm32 和 debug_symbols=yes 来编译带有调试符号的 Android 导出模板 。
对于你要发布的构建,建议使用 target=template_release,而不是 template_debug。
scons platform=android target=template_release generate_android_binaries=yes debug_symbols=yes gradle_do_not_strip=yes
如果你需要独立的符号文件,Sentry 的 Godot 文档建议在编译时加上 separate_debug_symbols=yes 选项 。
scons platform=android target=template_release generate_android_binaries=yes debug_symbols=yes gradle_do_not_strip=yes separate_debug_symbols=yes
上传的调试符号必须来自与上传的 AAB/APK 相同的构建,因为只有原生调试符号与导出的构建匹配,才能将栈追踪转换为可读的代码位置 。
如果构建结果没有自动生成可直接上传的 ZIP 文件,现有证据表明 Godot 曾经不支持将符号分离用于 Google Play,可能需要手动打包 。
对于 Play Console 接受的 ZIP 内符号文件的精确结构,现有信息不足以确认最终布局。建议参考 Google Play Console 官方文档。
示例(命令提示符):
set ANDROID_HOME=C:\Users\你的用户名\AppData\Local\Android\Sdk
克隆 Godot 源码并切换到与编辑器/导出模板相同的版本,因为调试符号必须与你将要发布的构建版本一致 。
git clone https://github.com/godotengine/godot.git
cd godot
git checkout 4.x
在 Godot 源码目录中运行 SCons。Godot 的相关文档也使用 scons 命令编译带调试符号的导出模板 。
对于你列出的标志,如果你的 Godot 版本构建系统支持这些选项,请使用:
scons platform=android target=template_debug generate_android_binaries=yes debug_symbols=yes gradle_do_not_strip=yes
Sentry 文档也指出,可以使用 target=template_debug、platform=android、arch=arm32 和 debug_symbols=yes 来编译带有调试符号的 Android 导出模板 。
对于你要发布的构建,建议使用 target=template_release,而不是 template_debug。
scons platform=android target=template_release generate_android_binaries=yes debug_symbols=yes gradle_do_not_strip=yes
如果你需要独立的符号文件,Sentry 的 Godot 文档建议在编译时加上 separate_debug_symbols=yes 选项 。
scons platform=android target=template_release generate_android_binaries=yes debug_symbols=yes gradle_do_not_strip=yes separate_debug_symbols=yes
上传的调试符号必须来自与上传的 AAB/APK 相同的构建,因为只有原生调试符号与导出的构建匹配,才能将栈追踪转换为可读的代码位置 。
如果构建结果没有自动生成可直接上传的 ZIP 文件,现有证据表明 Godot 曾经不支持将符号分离用于 Google Play,可能需要手动打包 。
对于 Play Console 接受的 ZIP 内符号文件的精确结构,现有信息不足以确认最终布局。建议参考 Google Play Console 官方文档。