C#: Preserve directories in output during export

This commit is contained in:
RedworkDE 2023-02-01 00:02:04 +01:00
parent 0810ecaafd
commit 70ebb6378c

View file

@ -185,7 +185,9 @@ namespace GodotTools.Export
foreach (string file in Directory.GetFiles(publishOutputTempDir, "*", SearchOption.AllDirectories))
{
AddSharedObject(file, tags: null, projectDataDirName);
AddSharedObject(file, tags: null,
Path.Join(projectDataDirName,
Path.GetRelativePath(publishOutputTempDir, Path.GetDirectoryName(file))));
}
}
}