Skip to content

Commit

Permalink
fix: use / for directory separator in pathname
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpach committed Mar 31, 2019
1 parent cb7a7a9 commit cbcc248
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UnityPackager/Packer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ private static void AddFolder(string tempPath, string folder, string destination

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

// unitypackage is always using / for directory separator
destinationPath = destinationPath.Replace(Path.DirectorySeparatorChar, '/');

AddAsset(tempPath, filename, destinationPath);
}
}
Expand Down

0 comments on commit cbcc248

Please sign in to comment.