diff options
author | Fredia Huya-Kouadio <fhuya@meta.com> | 2024-04-12 23:53:28 -0700 |
---|---|---|
committer | Fredia Huya-Kouadio <fhuya@meta.com> | 2024-04-12 23:53:28 -0700 |
commit | a8c9b59f3fd10b422fb0fcd14aa62edc37974d56 (patch) | |
tree | ac199c705394e2b93aa8255631ec953e9eacb098 /editor | |
parent | 029aadef563fb69cf49aa9795b62f27171f8c3f4 (diff) | |
download | redot-engine-a8c9b59f3fd10b422fb0fcd14aa62edc37974d56.tar.gz |
Automatically generate the Android debug keystore
Automatically generate the Android debug keystore when the Java SDK path is specified.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_paths.cpp | 4 | ||||
-rw-r--r-- | editor/editor_paths.h | 1 | ||||
-rw-r--r-- | editor/export/editor_export.cpp | 7 |
3 files changed, 12 insertions, 0 deletions
diff --git a/editor/editor_paths.cpp b/editor/editor_paths.cpp index 801c81efa8..be511452a6 100644 --- a/editor/editor_paths.cpp +++ b/editor/editor_paths.cpp @@ -70,6 +70,10 @@ String EditorPaths::get_export_templates_dir() const { return get_data_dir().path_join(export_templates_folder); } +String EditorPaths::get_debug_keystore_path() const { + return get_data_dir().path_join("keystores/debug.keystore"); +} + String EditorPaths::get_project_settings_dir() const { return get_project_data_dir().path_join("editor"); } diff --git a/editor/editor_paths.h b/editor/editor_paths.h index 547b93ad7e..a396c43301 100644 --- a/editor/editor_paths.h +++ b/editor/editor_paths.h @@ -63,6 +63,7 @@ public: String get_cache_dir() const; String get_project_data_dir() const; String get_export_templates_dir() const; + String get_debug_keystore_path() const; String get_project_settings_dir() const; String get_text_editor_themes_dir() const; String get_script_templates_dir() const; diff --git a/editor/export/editor_export.cpp b/editor/export/editor_export.cpp index 1be9fe5740..3b36f100e3 100644 --- a/editor/export/editor_export.cpp +++ b/editor/export/editor_export.cpp @@ -32,6 +32,7 @@ #include "core/config/project_settings.h" #include "core/io/config_file.h" +#include "editor/editor_settings.h" EditorExport *EditorExport::singleton = nullptr; @@ -191,6 +192,12 @@ void EditorExport::_notification(int p_what) { export_platforms.write[i]->cleanup(); } } break; + + case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: { + for (int i = 0; i < export_platforms.size(); i++) { + export_platforms.write[i]->notification(p_what); + } + } break; } } |