Enable automatic install of export apks for the Android editor

This commit is contained in:
Fredia Huya-Kouadio 2024-09-29 18:06:11 -07:00
parent 08f9cba0fb
commit af2423ba4d
7 changed files with 42 additions and 10 deletions

View file

@ -2887,6 +2887,14 @@ Error EditorExportPlatformAndroid::sign_apk(const Ref<EditorExportPreset> &p_pre
#endif
print_verbose("Successfully completed signing build.");
#ifdef ANDROID_ENABLED
bool prompt_apk_install = EDITOR_GET("export/android/install_exported_apk");
if (prompt_apk_install) {
OS_Android::get_singleton()->shell_open(apk_path);
}
#endif
return OK;
}