If android debug key generation fails, bail out of patching

This commit is contained in:
baldurk
2020-01-07 15:20:36 +00:00
parent b082bbe78f
commit 319455194b
+6
View File
@@ -223,7 +223,10 @@ rdcstr GetAndroidDebugKey()
Process::ProcessResult result = execCommand(keytool, create);
if(!result.strStderror.empty())
{
RDCERR("Failed to create debug key");
return "";
}
return key;
}
@@ -237,6 +240,9 @@ bool DebugSignAPK(const rdcstr &apk, const rdcstr &workDir)
rdcstr debugKey = GetAndroidDebugKey();
if(debugKey.empty())
return false;
rdcstr args;
args += " sign ";
args += " --ks \"" + debugKey + "\" ";