diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 22012ded28b..774244b6834 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -45,6 +45,7 @@ END TEMPLATE--> * Fix DynamicTree.Clear not removing node references. * Reverted validation for `UiBox2i` `ctor`s as it was causing regressions in debug UIs. +* Fix windows Robust.Packaging not using correct path separators for zip archives. ### Other diff --git a/Robust.Packaging/RobustSharedPackaging.cs b/Robust.Packaging/RobustSharedPackaging.cs index a2a23bf7820..0f2abe6b6f6 100644 --- a/Robust.Packaging/RobustSharedPackaging.cs +++ b/Robust.Packaging/RobustSharedPackaging.cs @@ -73,6 +73,9 @@ public static Task DoResourceCopy( continue; var targetPath = Path.Combine(targetDir, filename); + if (Path.DirectorySeparatorChar != '/') + targetPath = targetPath.Replace(Path.DirectorySeparatorChar, '/'); + if (Directory.Exists(path)) CopyDirIntoZip(path, targetPath, pass); else