Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
MustangYM committed May 10, 2019
1 parent 9d06816 commit 637f696
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ - (void)onWechatOnTopControl:(NSMenuItem *)item {
- (void)onUpdatePluginControl:(NSMenuItem *)item {
[[TKWeChatPluginConfig sharedConfig] setForbidCheckVersion:NO];
[[TKVersionManager shareManager] checkVersionFinish:^(TKVersionStatus status, NSString *message) {
if (status == TKVersionStatusOld) {
if (status == TKVersionStatusNew) {
NSAlert *alert = [[NSAlert alloc] init];
[alert addButtonWithTitle:TKLocalizedString(@"assistant.update.alret.confirm")];
[alert addButtonWithTitle:TKLocalizedString(@"assistant.update.alret.cancle")];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ - (void)downloadPluginProgress:(void (^)(NSProgress *downloadProgress))downloadP
[fileManager removeItemAtPath:pluginPath error:nil];
[fileManager removeItemAtPath:pluginZipPath error:nil];

NSString *urlString = @"https://github.com/MustangYM/WeChatExtension-ForMac/raw/master/WeChatExtension/Rely/Plugin/WeChatExtension.framework.zip";
NSString *urlString = @"https://github.com/MustangYM/WeChatExtension-ForMac/raw/master/WeChatExtension/Rely/Plugin/WeChatExtension.zip";
[[TKHTTPManager shareManager] downloadWithUrlString:urlString toDirectoryPah:cachesPath progress:^(NSProgress *downloadProgress) {
if (downloadProgressBlock) downloadProgressBlock(downloadProgress);
} completionHandler:^(NSString *filePath, NSError * _Nullable error) {
Expand Down

0 comments on commit 637f696

Please sign in to comment.