[fix] 修复Win下生成的Lump文件中include路径以\为目录分隔符导致同步到Mac后找不到路径的bug
parent
79bab0459c
commit
bec8c84c56
|
@ -1,3 +1,4 @@
|
||||||
|
using System;
|
||||||
using HybridCLR.Editor.Installer;
|
using HybridCLR.Editor.Installer;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
@ -63,7 +64,7 @@ namespace HybridCLR.Editor
|
||||||
|
|
||||||
private static string GetRelativePathFromProj(string path)
|
private static string GetRelativePathFromProj(string path)
|
||||||
{
|
{
|
||||||
return path.Substring(path.IndexOf("Libraries"));
|
return path.Substring(path.IndexOf("Libraries", StringComparison.Ordinal)).Replace('\\', '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void ModifyPBXProject(string pathToBuiltProject, string pbxprojFile, List<LumpFile> lumpFiles, List<string> extraFiles, List<string> cflags)
|
private static void ModifyPBXProject(string pathToBuiltProject, string pbxprojFile, List<LumpFile> lumpFiles, List<string> extraFiles, List<string> cflags)
|
||||||
|
|
Loading…
Reference in New Issue