[fix] 修复Win下生成的Lump文件中include路径以\为目录分隔符导致同步到Mac后找不到路径的bug

main
walon 2023-07-07 21:37:18 +08:00
parent 79bab0459c
commit bec8c84c56
1 changed files with 2 additions and 1 deletions

View File

@ -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)