Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
reitowo committed Oct 15, 2023
1 parent dd050f6 commit d82f082
Show file tree
Hide file tree
Showing 8 changed files with 237 additions and 174 deletions.
2 changes: 1 addition & 1 deletion Updator.Common/CompressionProvider/Brotli.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public async Task Compress(Stream src, Stream dst) {
await zipStream.FlushAsync();
await dst.FlushAsync();
await zipStream.DisposeAsync();
zipStream.Close();
zipStream.Close();
}

public async Task Decompress(Stream src, Stream dst) {
Expand Down
2 changes: 1 addition & 1 deletion Updator.Common/StorageProvider/TencentCos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public async Task RefreshRoot() {
PurgePathCacheRequest req = new PurgePathCacheRequest() {
Paths = new[] {_config.cdnRefreshPath},
UrlEncode = true,
FlushType = "delete"
FlushType = "flush"
};

if (req.Paths.Length == 0)
Expand Down
2 changes: 1 addition & 1 deletion Updator.Downloader.CLI/DownloaderMeta.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Updator.Downloader.CLI;

public class DownloaderMeta {
public const int Version = 33;
public const int Version = 34;
}
2 changes: 1 addition & 1 deletion Updator.Downloader.CLI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ await AnsiConsole.Progress()
if (desc.reinstallBuildId is {Count: > 0}) {
foreach (var id in desc.reinstallBuildId) {
if (oldDesc.buildId < id) {
AnsiConsole.Write($"[yellow]Removing existing files...[/]");
AnsiConsole.MarkupLine(Strings.RemoveOld);
Directory.Delete(distRoot, true);
break;
}
Expand Down
9 changes: 9 additions & 0 deletions Updator.Downloader.CLI/Strings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Updator.Downloader.CLI/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,7 @@
<data name="FailedToMove" xml:space="preserve">
<value>[red]Cannot write new version back, please close/delete the old version manually.[/]</value>
</data>
<data name="RemoveOld" xml:space="preserve">
<value>[yellow]Removing existing files...[/]</value>
</data>
</root>
3 changes: 3 additions & 0 deletions Updator.Downloader.CLI/Strings.zh.resx
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,7 @@
<data name="FailedToMove" xml:space="preserve">
<value>[red]无法将新版本写回原位置,请检查老版本窗口是否已关闭,或尝试手动删除老版本[/]</value>
</data>
<data name="RemoveOld" xml:space="preserve">
<value>[yellow]本次版本升级将移除老文件[/]</value>
</data>
</root>
Loading

0 comments on commit d82f082

Please sign in to comment.