diff --git a/ADOFAIRenderer.csproj b/ADOFAIRenderer.csproj index 23a594e..6a2497c 100644 --- a/ADOFAIRenderer.csproj +++ b/ADOFAIRenderer.csproj @@ -93,9 +93,25 @@ + + + + + + all + runtime; build; native; contentfiles; analyzers + true + + + + + + + + diff --git a/UI/FFmpegDownloadUI.cs b/UI/FFmpegDownloadUI.cs index 8bfa345..0bd0574 100644 --- a/UI/FFmpegDownloadUI.cs +++ b/UI/FFmpegDownloadUI.cs @@ -2,6 +2,7 @@ using System; using System.IO; using System.IO.Compression; using System.Net.Http; +using System.Text; using System.Threading.Tasks; using TMPro; using UnityEngine; @@ -24,8 +25,7 @@ namespace ADOFAIRenderer.UI private bool _isDownloading; private string DownloadUrl => Application.platform switch { - RuntimePlatform.WindowsPlayer => "https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl-shared.zip", - RuntimePlatform.OSXPlayer => "https://github.com/ColorsWind/FFmpeg-macOS/releases/download/n5.0.1-patch3/FFmpeg-shared-n5.0.1-OSX-universal.zip", + RuntimePlatform.WindowsPlayer => "https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl-shared.zip", _ => "https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-linux64-gpl-shared.tar.xz" }; @@ -188,7 +188,20 @@ namespace ADOFAIRenderer.UI descObj.layer = 5; var descText = descObj.AddComponent(); - descText.text = "동영상을 렌더링하려면 FFmpeg 공유 라이브러리가 필요합니다.\n아래 버튼을 눌러 인터넷에서 자동으로 다운로드하여 설치합니다.\n(다운로드 크기: 약 70MB, UserLibs 폴더에 압축 해제됨)"; + var descStrBuilder = new StringBuilder(); + descStrBuilder.AppendLine("동영상을 렌더링하려면 FFmpeg 공유 라이브러리가 필요합니다."); + if (Application.platform == RuntimePlatform.OSXPlayer) + { + descStrBuilder.AppendLine("OSX 플랫폼의 경우 신뢰 가능한 공개 빌드가 없어 수동으로 FFmpeg를 빌드하여야 합니다."); + descStrBuilder.AppendLine("아래 버튼을 눌러 ffmpeg 공식 웹사이트를 열 수 있습니다."); + } + else + { + descStrBuilder.AppendLine("아래 버튼을 눌러 인터넷에서 자동으로 다운로드하여 설치합니다."); + descStrBuilder.AppendLine("(다운로드 크기: 약 70MB, UserLibs 폴더에 압축 해제됨)"); + } + + descText.text = descStrBuilder.ToString(); descText.fontSize = 16; descText.font = font; descText.color = new Color(0.85f, 0.85f, 0.85f, 1f); @@ -225,8 +238,13 @@ namespace ADOFAIRenderer.UI var downloadBtn = downloadBtnObj.AddComponent