Skip to content

Commit 8f89896

Browse files
committed
添加更新文件夹
1 parent 510cdc4 commit 8f89896

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • Round.NET.AvaloniaApp.EncodeCalculator/Models/Update

Round.NET.AvaloniaApp.EncodeCalculator/Models/Update/Update.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ private static async Task DownloadFileAsync(string url, string fileName,Progress
140140
};
141141

142142
// 确保文件路径有效
143-
string filePath = Path.Combine(Directory.GetCurrentDirectory(), fileName);
143+
Directory.CreateDirectory("Update");
144+
string filePath = Path.Combine(Directory.GetCurrentDirectory(), $"Update/{GetNewVersion()}{fileName}");
144145
Console.WriteLine($"开始下载文件到: {filePath}");
145146

146147
if (Config.Config.MainConfig.UpdateChannelAcceleration)

0 commit comments

Comments
 (0)