Skip to content

Commit

Permalink
edit package installation folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Zt-freak committed Oct 3, 2021
1 parent 0c55540 commit cb2b448
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Castor/Castor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ApplicationIcon>castor-icon.ico</ApplicationIcon>
<Company>ZtModArchive</Company>
<Copyright>MIT License</Copyright>
<Version>3.2.0</Version>
<Version>3.3.0</Version>
<PackageProjectUrl>https://github.com/ZtModArchive/Castor/tree/main/Castor</PackageProjectUrl>
<PackageIcon>castor-icon.ico</PackageIcon>
<PackageIconUrl />
Expand Down
4 changes: 2 additions & 2 deletions Castor/Services/InstallerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit cb2b448

Please sign in to comment.