mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
If android debug key generation fails, bail out of patching
This commit is contained in:
@@ -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 + "\" ";
|
||||
|
||||
Reference in New Issue
Block a user