Merge pull request 'master' (#15) from CWX/SPT-AKI-Installer:master into master
Reviewed-on: waffle.lord/SPT-AKI-Installer#15
This commit is contained in:
commit
066567cc29
@ -72,6 +72,7 @@ public static class DownloadCacheHelper
|
|||||||
/// <remarks>If the file exists, it is deleted before downloading</remarks>
|
/// <remarks>If the file exists, it is deleted before downloading</remarks>
|
||||||
public static async Task<FileInfo?> DownloadFileAsync(string outputFileName, string targetLink, IProgress<double> progress)
|
public static async Task<FileInfo?> DownloadFileAsync(string outputFileName, string targetLink, IProgress<double> progress)
|
||||||
{
|
{
|
||||||
|
Directory.CreateDirectory(CachePath);
|
||||||
var outputFile = new FileInfo(Path.Join(CachePath, outputFileName));
|
var outputFile = new FileInfo(Path.Join(CachePath, outputFileName));
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -109,6 +110,7 @@ public static class DownloadCacheHelper
|
|||||||
/// <remarks>If the file exists, it is deleted before downloading</remarks>
|
/// <remarks>If the file exists, it is deleted before downloading</remarks>
|
||||||
public static async Task<FileInfo?> DownloadFileAsync(string outputFileName, Stream downloadStream)
|
public static async Task<FileInfo?> DownloadFileAsync(string outputFileName, Stream downloadStream)
|
||||||
{
|
{
|
||||||
|
Directory.CreateDirectory(CachePath);
|
||||||
var outputFile = new FileInfo(Path.Join(CachePath, outputFileName));
|
var outputFile = new FileInfo(Path.Join(CachePath, outputFileName));
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
<PackageIcon>icon.ico</PackageIcon>
|
<PackageIcon>icon.ico</PackageIcon>
|
||||||
<ApplicationIcon>Assets\icon.ico</ApplicationIcon>
|
<ApplicationIcon>Assets\icon.ico</ApplicationIcon>
|
||||||
<Configurations>Debug;Release;TEST</Configurations>
|
<Configurations>Debug;Release;TEST</Configurations>
|
||||||
<AssemblyVersion>2.14</AssemblyVersion>
|
<AssemblyVersion>2.15</AssemblyVersion>
|
||||||
<FileVersion>2.14</FileVersion>
|
<FileVersion>2.15</FileVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user