From cbcc2489c04036a322bc99bc6ebaff30481ffed0 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Sun, 31 Mar 2019 10:38:56 -0500 Subject: [PATCH] fix: use / for directory separator in pathname --- UnityPackager/Packer.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UnityPackager/Packer.cs b/UnityPackager/Packer.cs index ed019db..d2dd2e0 100644 --- a/UnityPackager/Packer.cs +++ b/UnityPackager/Packer.cs @@ -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); } }