From cb2b4485b8f64b9174a89ae36119e3b2b140038b Mon Sep 17 00:00:00 2001 From: Apodemus Erectus Date: Sun, 3 Oct 2021 16:00:48 +0200 Subject: [PATCH] edit package installation folder structure --- Castor/Castor.csproj | 2 +- Castor/Services/InstallerService.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Castor/Castor.csproj b/Castor/Castor.csproj index 1ae40a0..12886a0 100644 --- a/Castor/Castor.csproj +++ b/Castor/Castor.csproj @@ -6,7 +6,7 @@ castor-icon.ico ZtModArchive MIT License - 3.2.0 + 3.3.0 https://github.com/ZtModArchive/Castor/tree/main/Castor castor-icon.ico diff --git a/Castor/Services/InstallerService.cs b/Castor/Services/InstallerService.cs index beff6ec..f869627 100644 --- a/Castor/Services/InstallerService.cs +++ b/Castor/Services/InstallerService.cs @@ -49,8 +49,8 @@ public void InstallModule(string packageName, bool addToConfig = false) { firstSubDir = subDirectories[0]; } - - CopyFilesRecursively($"{guid}/{firstSubDir.Split('\\')[1]}", $"modules/{packageArgs[0]}/{packageArgs[1]}/{packageArgs[2].Replace('.', '-')}"); + + CopyFilesRecursively($"{guid}/{firstSubDir.Split('\\')[1]}", $"modules/{packageArgs[0]}/{packageArgs[1]}"); Console.WriteLine($"preparing cleanup for {guid}"); var directory = new DirectoryInfo($"{guid}") { Attributes = FileAttributes.Normal };