manager: migrate base project structure & deps
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user