Skip to content

Commit

Permalink
Windows v2.8.5 Desktop v0.7.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeric-X committed Aug 10, 2024
1 parent 60cb268 commit 2db9985
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 11 deletions.
5 changes: 3 additions & 2 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
v2.8.4.1
- 修复:使用aliyundrive-webdav时无法上传(#98)
v2.8.5
- 修复:使用aliyundrive-webdav及其衍生工具作为服务器时无法上传(#98)
- 功能:添加多种同步内容控制开关(上传/下载/文本/文件/文件夹/文件类型)(#90, #111)

v2.8.4
- 功能:可以设置重试次数,下载失败超过重试次数自动下载会暂停,触发一次上传后会恢复自动下载(#100)
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- [Android](#android)
- [使用HTTP Request Shortcuts](#使用http-request-shortcuts)
- [使用Autox.js](#使用autoxjs)
- [使用SmsForwarder](#使用smsforwarder)
- [使用Tasker](#使用tasker)
- [客户端配置说明](#客户端配置说明)
- [API](#api)
Expand Down Expand Up @@ -177,6 +178,10 @@ docker compose up -d

导入js文件、修改每个文件头部的用户配置后,手动点击运行,或者为每个js文件设置触发方式,例如:开机时触发

#### 使用[SmsForwarder](https://github.com/pppscn/SmsForwarder)

- 自动上传验证码, https://github.com/Jeric-X/SyncClipboard/discussions/109

#### 使用[Tasker](https://tasker.joaoapps.com/)

- https://github.com/forrestgao/taskerforSyncClipboard ,作者:[forrestgao](https://github.com/forrestgao)
Expand Down
4 changes: 2 additions & 2 deletions build/macos/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<key>NSHighResolutionCapable</key>
<true/>
<key>CFBundleVersion</key>
<string>0.7.5.1</string>
<string>0.7.6</string>
<key>CFBundleShortVersionString</key>
<string>0.7.5.1</string>
<string>0.7.6</string>
</dict>
</plist>
11 changes: 8 additions & 3 deletions src/SyncClipboard.Core/Clipboard/Profile/GroupProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ public GroupProfile(ClipboardProfileDTO profileDTO) : base(profileDTO)
{
}

public static async Task<GroupProfile> Create(string[] files, CancellationToken token)
public static async Task<Profile> Create(string[] files, CancellationToken token)
{
var hash = await Task.Run(() => CaclHash(files, token)).WaitAsync(token);
var filterdFiles = files.Where(file => IsFileAvailableAfterFilter(file));
if (filterdFiles.Count() == 1 && File.Exists(filterdFiles.First()))
return await Create(filterdFiles.First(), token);

var hash = await Task.Run(() => CaclHash(filterdFiles, token)).WaitAsync(token);
return new GroupProfile(files, hash);
}

Expand All @@ -52,8 +56,9 @@ private static int FileNameCompare(string file1, string file2)
);
}

private static string CaclHash(string[] files, CancellationToken token)
private static string CaclHash(IEnumerable<string> filesEnum, CancellationToken token)
{
var files = filesEnum.ToArray();
var maxSize = Config.GetConfig<SyncConfig>().MaxFileByte;
Array.Sort(files, FileNameCompare);
long sumSize = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/SyncClipboard.Desktop/AppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ internal class AppConfig : IAppConfig
{
public string AppId => Env.AppId;
public string AppStringId => "SyncClipboard.Desktop";
public string AppVersion => "0.7.5.1";
public string AppVersion => "0.7.6";
public string UpdateApiUrl => "https://api.github.com/repos/Jeric-X/SyncClipboard.Desktop/releases";
public string UpdateUrl => "https://github.com/Jeric-X/SyncClipboard.Desktop/releases/latest";
}
5 changes: 3 additions & 2 deletions src/SyncClipboard.Desktop/Changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
0.7.5.1
- 修复:使用aliyundrive-webdav时无法上传(https://github.com/Jeric-X/SyncClipboard/issues/98)
0.7.6
- 修复:使用aliyundrive-webdav及其衍生工具作为服务器时无法上传(https://github.com/Jeric-X/SyncClipboard/issues/98)
- 功能:添加多种同步内容控制开关(上传/下载/文本/文件/文件夹/文件类型)(https://github.com/Jeric-X/SyncClipboard/issues/90 , https://github.com/Jeric-X/SyncClipboard/issues/111)

0.7.5
- 功能:可以设置重试次数,下载失败超过重试次数自动下载会暂停,触发一次上传后会恢复自动下载(https://github.com/Jeric-X/SyncClipboard/issues/100)
Expand Down
2 changes: 1 addition & 1 deletion src/SyncClipboard.WinUI3/AppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ internal class AppConfig : IAppConfig
{
public string AppId => Env.AppId;
public string AppStringId => "SyncClipboard.WinUI";
public string AppVersion => "2.8.4.1";
public string AppVersion => "2.8.5";
public string UpdateApiUrl => "https://api.github.com/repos/Jeric-X/SyncClipboard/releases";
public string UpdateUrl => "https://github.com/Jeric-X/SyncClipboard/releases/latest";
}

0 comments on commit 2db9985

Please sign in to comment.