1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Delete .idsig on One Click Deploy

This commit is contained in:
Summersay415
2024-12-06 21:41:03 +07:00
parent eb5103093c
commit 3d8ecc452a

View File

@@ -2087,11 +2087,14 @@ Error EditorExportPlatformAndroid::run(const Ref<EditorExportPreset> &p_preset,
String tmp_export_path = EditorPaths::get_singleton()->get_cache_dir().path_join("tmpexport." + uitos(OS::get_singleton()->get_unix_time()) + ".apk"); 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) \ #define CLEANUP_AND_RETURN(m_err) \
{ \ { \
DirAccess::remove_file_or_error(tmp_export_path); \ DirAccess::remove_file_or_error(tmp_export_path); \
return m_err; \ if (FileAccess::exists(tmp_export_path + ".idsig")) { \
} \ DirAccess::remove_file_or_error(tmp_export_path + ".idsig"); \
} \
return m_err; \
} \
((void)0) ((void)0)
// Export to temporary APK before sending to device. // Export to temporary APK before sending to device.