manager: migrate base project structure & deps

This commit is contained in:
2025-11-10 18:28:20 +01:00
parent da25510543
commit 6cf27b4867
28 changed files with 304 additions and 155 deletions

View File

@@ -58,7 +58,7 @@ public class ModpackInstaller(ModpackConfig updateConfig, ModpackInfo modpackInf
return result;
}
if (modpackInfo == null || !Directory.Exists(modpackInfo.LocaLPath))
if (modpackInfo == null || !Directory.Exists(modpackInfo.LocalPath))
{
result.HasError = true;
return result;
@@ -168,7 +168,7 @@ public class ModpackInstaller(ModpackConfig updateConfig, ModpackInfo modpackInf
foreach (InstallAction iaction in checkResult.Actions)
{
var destFilePath = iaction.GetDestPath(modpackInfo.LocaLPath);
var destFilePath = iaction.GetDestPath(modpackInfo.LocalPath);
var sourceUrl = updateConfig.PreferDirectLinks && !string.IsNullOrWhiteSpace(iaction.SourceUrl)
? iaction.GetSourceUrl(checkResult.LatestVersion, overwriteVersion: OverwriteVersion)
: await factory.ResolveSourceUrl(iaction, targetVersion: checkResult.LatestVersion, overwriteVersion: OverwriteVersion);
@@ -194,7 +194,7 @@ public class ModpackInstaller(ModpackConfig updateConfig, ModpackInfo modpackInf
break;
case UpdateActionType.Copy:
{
var srcFilePath = Path.Combine(modpackInfo.LocaLPath, uaction.SrcPath);
var srcFilePath = Path.Combine(modpackInfo.LocalPath, uaction.SrcPath);
if (uaction.IsDirectory)
{
if (Directory.Exists(srcFilePath))
@@ -209,7 +209,7 @@ public class ModpackInstaller(ModpackConfig updateConfig, ModpackInfo modpackInf
break;
case UpdateActionType.Move:
{
var srcFilePath = Path.Combine(modpackInfo.LocaLPath, uaction.SrcPath);
var srcFilePath = Path.Combine(modpackInfo.LocalPath, uaction.SrcPath);
if (uaction.IsDirectory)
{
if (Directory.Exists(srcFilePath))