diff --git a/src/Snap.Hutao/Snap.Hutao/Service/Update/UpdateService.cs b/src/Snap.Hutao/Snap.Hutao/Service/Update/UpdateService.cs index c6cf8ada..c0ba751f 100644 --- a/src/Snap.Hutao/Snap.Hutao/Service/Update/UpdateService.cs +++ b/src/Snap.Hutao/Snap.Hutao/Service/Update/UpdateService.cs @@ -153,6 +153,7 @@ internal sealed partial class UpdateService : IUpdateService StreamCopyWorker worker = new(webStream, fileStream, bytesRead => new UpdateStatus(version, bytesRead, totalBytes)); await worker.CopyAsync(progress).ConfigureAwait(false); + fileStream.SetLength(fileStream.Position); string? remoteHash = versionInformation.Sha256; ArgumentNullException.ThrowIfNull(remoteHash);