2024-10-09 21:05:24 +03:00
|
|
|
|
// Licensed to the .NET Foundation under one or more agreements.
|
|
|
|
|
// The .NET Foundation licenses this file to you under the MIT license.
|
2022-07-06 16:05:59 +03:00
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
namespace nanoFramework.Tools.FirmwareFlasher
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class that handles the download of J-Link firmware files from Cloudsmith.
|
|
|
|
|
/// </summary>
|
|
|
|
|
internal class JLinkFirmware : FirmwarePackage
|
|
|
|
|
{
|
|
|
|
|
public JLinkFirmware(
|
|
|
|
|
string targetName,
|
|
|
|
|
string fwVersion,
|
|
|
|
|
bool preview)
|
|
|
|
|
: base(
|
|
|
|
|
targetName,
|
|
|
|
|
fwVersion,
|
|
|
|
|
preview)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-09 21:05:24 +03:00
|
|
|
|
internal new System.Threading.Tasks.Task<ExitCodes> DownloadAndExtractAsync(string archiveDirectoryPath)
|
2022-07-06 16:05:59 +03:00
|
|
|
|
{
|
|
|
|
|
// perform download and extract
|
2024-10-09 21:05:24 +03:00
|
|
|
|
return base.DownloadAndExtractAsync(archiveDirectoryPath);
|
2022-07-06 16:05:59 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|