Exemple #1
0
 private static void FixFFmpegPermissionForOSX()
 {
     CmdProcess.Run("chmod", "a+x " + PathConfig.ffmpegPath);
     UnityEngine.Debug.Log("Grant permission for: " + PathConfig.ffmpegPath);
     CmdProcess.Run("chmod", "a+x " + PathConfig.injectorPath);
     UnityEngine.Debug.Log("Grant permission for: " + PathConfig.injectorPath);
 }
Exemple #2
0
        private static void GrantFFmpegPermissionForOSX()
        {
#if UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
            CmdProcess.Run("chmod", "a+x " + PathConfig.macOSFFmpegPath);
            UnityEngine.Debug.Log("Grant permission for: " + PathConfig.macOSFFmpegPath);
#endif
        }
Exemple #3
0
 private static void DownloadFFmpegForWindows()
 {
     if (!Directory.Exists(PathConfig.windowsFFmpegFolderPath))
     {
         Directory.CreateDirectory(PathConfig.windowsFFmpegFolderPath);
     }
     CmdProcess.Run("curl", PathConfig.windowsFFmpegDownloadUrl + " --output " + "\"" + PathConfig.windowsFFmpegPath + "\"");
     UnityEngine.Debug.Log("Download Windows FFmpeg done!");
 }
Exemple #4
0
        private static void DownloadFFmpegForOSX()
        {
            if (!Directory.Exists(PathConfig.macOSFFmpegFolderPath))
            {
                Directory.CreateDirectory(PathConfig.macOSFFmpegFolderPath);
            }
            CmdProcess.Run("curl", PathConfig.macOSFFmpegDownloadUrl + " --output " + "\"" + PathConfig.macOSFFmpegPath + "\"");
#if UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
            CmdProcess.Run("chmod", "a+x " + "\"" + PathConfig.macOSFFmpegPath + "\"");
            UnityEngine.Debug.Log("Grant permission for: " + PathConfig.macOSFFmpegPath);
#endif
            UnityEngine.Debug.Log("Download macOS FFmpeg done!");
        }