Skip to content

Commit

Permalink
Merge pull request #10 from paulpach/separator
Browse files Browse the repository at this point in the history
fix: use / for directory separator in pathname
  • Loading branch information
TwoTenPvP authored Mar 31, 2019
2 parents cb7a7a9 + cbcc248 commit b166905
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 b166905

Please sign in to comment.