From cc09487671c00efddb9dfd636a53a367e1fc45bd Mon Sep 17 00:00:00 2001 From: firleaves <41557613+firleaves@users.noreply.github.com> Date: Thu, 28 Sep 2023 19:37:46 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BF=AE=E5=A4=8Dmac=E4=B8=8B=E9=9D=A2?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E8=BF=87=E9=95=BF=E5=AF=BC=E8=87=B4=E6=8B=B7?= =?UTF-8?q?=E8=B4=9D=E6=96=87=E4=BB=B6=E5=A4=B1=E8=B4=A5=20(#37)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/Installer/BashUtil.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Editor/Installer/BashUtil.cs b/Editor/Installer/BashUtil.cs index 2dee189..9d69c6c 100644 --- a/Editor/Installer/BashUtil.cs +++ b/Editor/Installer/BashUtil.cs @@ -90,12 +90,16 @@ namespace HybridCLR.Editor.Installer private static void CopyWithCheckLongFile(string srcFile, string dstFile) { - if (srcFile.Length > 255) + var maxPathLength = 255; +#if UNITY_EDITOR_OSX + maxPathLength = 1024; +#endif + if (srcFile.Length > maxPathLength) { UnityEngine.Debug.LogError($"srcFile:{srcFile} path is too long. copy ignore!"); return; } - if (dstFile.Length > 255) + if (dstFile.Length > maxPathLength) { UnityEngine.Debug.LogError($"dstFile:{dstFile} path is too long. copy ignore!"); return;