add support for version placeholder in download links
This commit is contained in:
@@ -150,8 +150,8 @@ public class ModpackInstaller(ModpackConfig updateConfig, ModpackInfo modpackInf
|
||||
{
|
||||
var destFilePath = Path.Combine(modpackInfo.LocaLPath, iaction.DestPath);
|
||||
var sourceUrl = updateConfig.PreferDirectLinks && !string.IsNullOrWhiteSpace(iaction.SourceUrl)
|
||||
? iaction.SourceUrl
|
||||
: await factory.ResolveSourceUrl(iaction);
|
||||
? iaction.GetSourceUrl(checkResult.LatestVersion)
|
||||
: await factory.ResolveSourceUrl(iaction, checkResult.LatestVersion);
|
||||
|
||||
if (iaction is UpdateAction uaction)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user