From 3d8ecc452ab81ab03f5bcefff3ec76d68b9cd1c3 Mon Sep 17 00:00:00 2001 From: Summersay415 Date: Fri, 6 Dec 2024 21:41:03 +0700 Subject: [PATCH] Delete .idsig on One Click Deploy --- platform/android/export/export_plugin.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/platform/android/export/export_plugin.cpp b/platform/android/export/export_plugin.cpp index 293044a8fa0..5523b5b062e 100644 --- a/platform/android/export/export_plugin.cpp +++ b/platform/android/export/export_plugin.cpp @@ -2087,11 +2087,14 @@ Error EditorExportPlatformAndroid::run(const Ref &p_preset, String tmp_export_path = EditorPaths::get_singleton()->get_cache_dir().path_join("tmpexport." + uitos(OS::get_singleton()->get_unix_time()) + ".apk"); -#define CLEANUP_AND_RETURN(m_err) \ - { \ - DirAccess::remove_file_or_error(tmp_export_path); \ - return m_err; \ - } \ +#define CLEANUP_AND_RETURN(m_err) \ + { \ + DirAccess::remove_file_or_error(tmp_export_path); \ + if (FileAccess::exists(tmp_export_path + ".idsig")) { \ + DirAccess::remove_file_or_error(tmp_export_path + ".idsig"); \ + } \ + return m_err; \ + } \ ((void)0) // Export to temporary APK before sending to device.