From bc7a99a0f55b92c811f70fe075722186db233d51 Mon Sep 17 00:00:00 2001 From: k0fe Date: Tue, 15 Sep 2020 17:23:56 +0300 Subject: [PATCH] Win32Exception: ApplicationName='cmd', CommandLine='/Cecho "xxx" | openssl base64', CurrentDirectory='', Native error= %1 is not a valid Win32 application. --- Facebook.Unity.Editor/android/FacebookAndroidUtil.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Facebook.Unity.Editor/android/FacebookAndroidUtil.cs b/Facebook.Unity.Editor/android/FacebookAndroidUtil.cs index 81024bd8f..768d5bf33 100644 --- a/Facebook.Unity.Editor/android/FacebookAndroidUtil.cs +++ b/Facebook.Unity.Editor/android/FacebookAndroidUtil.cs @@ -120,7 +120,7 @@ private static string GetKeyHash(string alias, string keyStore, string password) var arguments = @"""keytool -storepass {0} -keypass {1} -exportcert -alias {2} -keystore {3} | openssl sha1 -binary | openssl base64"""; if (Application.platform == RuntimePlatform.WindowsEditor) { - proc.StartInfo.FileName = "cmd"; + proc.StartInfo.FileName = "cmd.exe"; arguments = @"/C " + arguments; } else @@ -154,7 +154,7 @@ private static bool DoesCommandExist(string command) var proc = new Process(); if (Application.platform == RuntimePlatform.WindowsEditor) { - proc.StartInfo.FileName = "cmd"; + proc.StartInfo.FileName = "cmd.exe"; proc.StartInfo.Arguments = @"/C" + command; } else