Skip to content

Commit

Permalink
Fix application updater start message (#520)
Browse files Browse the repository at this point in the history
Closes #519
  • Loading branch information
AlexMacocian authored Dec 19, 2023
1 parent d24ae98 commit 8e69375
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Daybreak.7ZipExtractor/Daybreak.7ZipExtractor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="SharpCompress" Version="0.34.2" />
<PackageReference Include="SharpCompress" Version="0.35.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion Daybreak/Daybreak.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<LangVersion>preview</LangVersion>
<ApplicationIcon>Daybreak.ico</ApplicationIcon>
<IncludePackageReferencesDuringMarkupCompilation>true</IncludePackageReferencesDuringMarkupCompilation>
<Version>0.9.8.164</Version>
<Version>0.9.8.165</Version>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<UserSecretsId>cfb2a489-db80-448d-a969-80270f314c46</UserSecretsId>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
Expand Down
3 changes: 2 additions & 1 deletion Daybreak/Services/Updater/ApplicationUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ public void OnClosing()
private async Task<bool> DownloadUpdateInternalBlob(List<Metadata> metadata, Version version, UpdateStatus updateStatus)
{
var scopedLogger = this.logger.CreateScopedLogger(nameof(this.DownloadUpdateInternalBlob), version.ToString());
updateStatus.CurrentStep = DownloadStatus.InitializingDownload;

// Exclude daybreak packed files
var daybreakArchive = $"daybreak{version}.zip";
var filesToDownload = metadata
Expand Down Expand Up @@ -257,7 +259,6 @@ private async Task<bool> DownloadUpdateInternalBlob(List<Metadata> metadata, Ver
})
.ToList();

updateStatus.CurrentStep = DownloadStatus.InitializingDownload;
using var packageStream = new FileStream("update.pkg", FileMode.Create);
var downloaded = 0d;
var downloadBuffer = new byte[8192];
Expand Down

0 comments on commit 8e69375

Please sign in to comment.