Skip to content

Commit b166905

Browse files
authored
Merge pull request #10 from paulpach/separator
fix: use / for directory separator in pathname
2 parents cb7a7a9 + cbcc248 commit b166905

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

UnityPackager/Packer.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ private static void AddFolder(string tempPath, string folder, string destination
5555

5656
string destinationPath = Path.Combine(destination, Path.GetRelativePath(folder, filename));
5757

58+
// unitypackage is always using / for directory separator
59+
destinationPath = destinationPath.Replace(Path.DirectorySeparatorChar, '/');
60+
5861
AddAsset(tempPath, filename, destinationPath);
5962
}
6063
}

0 commit comments

Comments
 (0)