Browse Source

Fix JAR files signed with the MD5 algorithm are not supported

RameshRavone 7 năm trước cách đây
mục cha
commit
38b5679c49

+ 2 - 2
platform/android/export/export.cpp

@@ -1282,9 +1282,9 @@ Error EditorExportPlatformAndroid::export_project(const String &p_path, bool p_d
 
 
 		List<String> args;
 		List<String> args;
 		args.push_back("-digestalg");
 		args.push_back("-digestalg");
-		args.push_back("SHA1");
+		args.push_back("SHA-256");
 		args.push_back("-sigalg");
 		args.push_back("-sigalg");
-		args.push_back("MD5withRSA");
+		args.push_back("SHA256withRSA");
 		String tsa_url = EditorSettings::get_singleton()->get("android/timestamping_authority_url");
 		String tsa_url = EditorSettings::get_singleton()->get("android/timestamping_authority_url");
 		if (tsa_url != "") {
 		if (tsa_url != "") {
 			args.push_back("-tsa");
 			args.push_back("-tsa");