private static void DownloadFFmpegThreadFunction(string downloadUrl, string savePath) { UnityEngine.Debug.Log("Download FFmpeg in the background, please wait a few minutes until complete..."); CommandProcess.Run("curl", downloadUrl + " --output " + "\"" + savePath + "\""); GrantFFmpegPermissionForOSX(); UnityEngine.Debug.Log("Download FFmpeg complete!"); }
private static void GrantFFmpegPermissionForOSX() { #if UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX CommandProcess.Run("chmod", "a+x " + "\"" + Config.macOSFFmpegPath + "\""); UnityEngine.Debug.Log("Grant permission for: " + Config.macOSFFmpegPath); #endif }