You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #102171 from Muller-Castro/apksigner-fix
Fix apksigner execution failure on linux
This commit is contained in:
@@ -2522,6 +2522,13 @@ String EditorExportPlatformAndroid::get_apksigner_path(int p_target_sdk, bool p_
|
||||
String java_sdk_path = EDITOR_GET("export/android/java_sdk_path");
|
||||
if (!java_sdk_path.is_empty()) {
|
||||
OS::get_singleton()->set_environment("JAVA_HOME", java_sdk_path);
|
||||
|
||||
#ifdef UNIX_ENABLED
|
||||
String env_path = OS::get_singleton()->get_environment("PATH");
|
||||
if (!env_path.contains(java_sdk_path)) {
|
||||
OS::get_singleton()->set_environment("PATH", java_sdk_path + "/bin:" + env_path);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
List<String> args;
|
||||
|
||||
Reference in New Issue
Block a user