diff --git a/Other/Products/Debug/WeChatPlugin.framework/Resources/Info.plist b/Other/Products/Debug/WeChatPlugin.framework/Resources/Info.plist
index baf9b6cc..badcf107 100644
--- a/Other/Products/Debug/WeChatPlugin.framework/Resources/Info.plist
+++ b/Other/Products/Debug/WeChatPlugin.framework/Resources/Info.plist
@@ -3,7 +3,7 @@
BuildMachineOSBuild
- 22D68
+ 22E261
CFBundleDevelopmentRegion
en
CFBundleExecutable
@@ -17,7 +17,7 @@
CFBundlePackageType
FMWK
CFBundleShortVersionString
- 1.7.5
+ 2.0.1
CFBundleSupportedPlatforms
MacOSX
@@ -27,19 +27,19 @@
DTCompiler
com.apple.compilers.llvm.clang.1_0
DTPlatformBuild
- 14A400
+
DTPlatformName
macosx
DTPlatformVersion
- 12.3
+ 13.3
DTSDKBuild
- 21E226
+ 22E245
DTSDKName
- macosx12.3
+ macosx13.3
DTXcode
- 1401
+ 1430
DTXcodeBuild
- 14A400
+ 14E222b
LSMinimumSystemVersion
10.12
NSHumanReadableCopyright
@@ -47,6 +47,6 @@
showUpdateWindow
versionInfo
- v1.7.5(2019-01-13):\n👉🏻 适配微信 Version. 2.3.22\n👉🏼 菜单栏新增是否允许微信启动时检测更新(非AppStore版本)\n👉🏽 优化 XML 解析\n\n\n\nv1.7.3 (2018-10-22):\n👉🏻 适配微信 Version. 2.3.19\n👉🏼 修复安全漏洞(请务必更新,若有安装QQ插件也需要更新)\n👉🏽 菜单栏-关于小助手-新增 alfred 开关(若不使用 aflred 可关闭) \n\nv1.7.1 (2018-07-24):\n👉🏻 适配微信 Version. 2.3.17\n👉🏼 新增 alfred 搜索最近聊天列表\n👉🏽 新增 alfred 查看用户聊天记录\n (需更新wechat-alfred-workflow)\n\nv1.7 (2018-05-12):\n👉🏻 新增不同账户设置不同的自动回复&远程控制\n👉🏼 自动回复新增总开关&指定联系人\n👉🏽 远程控制新增控制小助手配置\n👉🏾 新增一键已读\n👉 新增一键清除空回话\n👉🏻 新增国际化(支持英、简、繁)\n👉🏼 新增关于小助手\n👉🏽 新增在线更新小助手 \n👉🏾 去除微信url转链处理(从此直接打开抖音链接🌝 \n👉🏿 修复无法免认证登录&多开等bug \n
+ v2.0.1(2023-04-18):\n👉🏻 适配微信 Version. 3.7.1\n👉🏼 菜单栏新增是否允许微信启动时检测更新(非AppStore版本)\n👉🏽 优化 XML 解析\n\n\n\nv1.7.3 (2018-10-22):\n👉🏻 适配微信 Version. 2.3.19\n👉🏼 修复安全漏洞(请务必更新,若有安装QQ插件也需要更新)\n👉🏽 菜单栏-关于小助手-新增 alfred 开关(若不使用 aflred 可关闭) \n\nv1.7.1 (2018-07-24):\n👉🏻 适配微信 Version. 2.3.17\n👉🏼 新增 alfred 搜索最近聊天列表\n👉🏽 新增 alfred 查看用户聊天记录\n (需更新wechat-alfred-workflow)\n\nv1.7 (2018-05-12):\n👉🏻 新增不同账户设置不同的自动回复&远程控制\n👉🏼 自动回复新增总开关&指定联系人\n👉🏽 远程控制新增控制小助手配置\n👉🏾 新增一键已读\n👉 新增一键清除空回话\n👉🏻 新增国际化(支持英、简、繁)\n👉🏼 新增关于小助手\n👉🏽 新增在线更新小助手 \n👉🏾 去除微信url转链处理(从此直接打开抖音链接🌝 \n👉🏿 修复无法免认证登录&多开等bug \n
diff --git a/Other/Products/Debug/WeChatPlugin.framework/Versions/Current/Resources/Info.plist b/Other/Products/Debug/WeChatPlugin.framework/Versions/Current/Resources/Info.plist
index baf9b6cc..badcf107 100644
--- a/Other/Products/Debug/WeChatPlugin.framework/Versions/Current/Resources/Info.plist
+++ b/Other/Products/Debug/WeChatPlugin.framework/Versions/Current/Resources/Info.plist
@@ -3,7 +3,7 @@
BuildMachineOSBuild
- 22D68
+ 22E261
CFBundleDevelopmentRegion
en
CFBundleExecutable
@@ -17,7 +17,7 @@
CFBundlePackageType
FMWK
CFBundleShortVersionString
- 1.7.5
+ 2.0.1
CFBundleSupportedPlatforms
MacOSX
@@ -27,19 +27,19 @@
DTCompiler
com.apple.compilers.llvm.clang.1_0
DTPlatformBuild
- 14A400
+
DTPlatformName
macosx
DTPlatformVersion
- 12.3
+ 13.3
DTSDKBuild
- 21E226
+ 22E245
DTSDKName
- macosx12.3
+ macosx13.3
DTXcode
- 1401
+ 1430
DTXcodeBuild
- 14A400
+ 14E222b
LSMinimumSystemVersion
10.12
NSHumanReadableCopyright
@@ -47,6 +47,6 @@
showUpdateWindow
versionInfo
- v1.7.5(2019-01-13):\n👉🏻 适配微信 Version. 2.3.22\n👉🏼 菜单栏新增是否允许微信启动时检测更新(非AppStore版本)\n👉🏽 优化 XML 解析\n\n\n\nv1.7.3 (2018-10-22):\n👉🏻 适配微信 Version. 2.3.19\n👉🏼 修复安全漏洞(请务必更新,若有安装QQ插件也需要更新)\n👉🏽 菜单栏-关于小助手-新增 alfred 开关(若不使用 aflred 可关闭) \n\nv1.7.1 (2018-07-24):\n👉🏻 适配微信 Version. 2.3.17\n👉🏼 新增 alfred 搜索最近聊天列表\n👉🏽 新增 alfred 查看用户聊天记录\n (需更新wechat-alfred-workflow)\n\nv1.7 (2018-05-12):\n👉🏻 新增不同账户设置不同的自动回复&远程控制\n👉🏼 自动回复新增总开关&指定联系人\n👉🏽 远程控制新增控制小助手配置\n👉🏾 新增一键已读\n👉 新增一键清除空回话\n👉🏻 新增国际化(支持英、简、繁)\n👉🏼 新增关于小助手\n👉🏽 新增在线更新小助手 \n👉🏾 去除微信url转链处理(从此直接打开抖音链接🌝 \n👉🏿 修复无法免认证登录&多开等bug \n
+ v2.0.1(2023-04-18):\n👉🏻 适配微信 Version. 3.7.1\n👉🏼 菜单栏新增是否允许微信启动时检测更新(非AppStore版本)\n👉🏽 优化 XML 解析\n\n\n\nv1.7.3 (2018-10-22):\n👉🏻 适配微信 Version. 2.3.19\n👉🏼 修复安全漏洞(请务必更新,若有安装QQ插件也需要更新)\n👉🏽 菜单栏-关于小助手-新增 alfred 开关(若不使用 aflred 可关闭) \n\nv1.7.1 (2018-07-24):\n👉🏻 适配微信 Version. 2.3.17\n👉🏼 新增 alfred 搜索最近聊天列表\n👉🏽 新增 alfred 查看用户聊天记录\n (需更新wechat-alfred-workflow)\n\nv1.7 (2018-05-12):\n👉🏻 新增不同账户设置不同的自动回复&远程控制\n👉🏼 自动回复新增总开关&指定联系人\n👉🏽 远程控制新增控制小助手配置\n👉🏾 新增一键已读\n👉 新增一键清除空回话\n👉🏻 新增国际化(支持英、简、繁)\n👉🏼 新增关于小助手\n👉🏽 新增在线更新小助手 \n👉🏾 去除微信url转链处理(从此直接打开抖音链接🌝 \n👉🏿 修复无法免认证登录&多开等bug \n
diff --git a/README.md b/README.md
index a6eb7fa2..54e051f7 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
 [](https://github.com/TKkk-iOSer/WeChatPlugin-MacOS/releases)  [](./README_EN.md) [](./LICENSE)
-# 微信小助手 v2.0
+# 微信小助手 v2.0.1
**[English](./README_EN.md) | 中文**
@@ -44,7 +44,7 @@
* 新增禁止微信检测更新开关(非App Store版本)
* ~~新增小助手.app安装方式~~
* 支持退群监控,撤回消息定位
-* 支持微信 3.7.0
+* 支持微信 3.7.1
**若无使用 alfred,则不必打开 alfred 开关**
@@ -63,6 +63,7 @@
## 更新日志
+* [修复多开(2023-04-18)](https://github.com/warkcod/WeChatPlugin-MacOS/releases/tag/v2.0.1)
* [适配3.7.0(2023-03-12)](https://github.com/TKkk-iOSer/WeChatPlugin-MacOS/releases/tag/v2.0)
* [适配2.3.22 & 新增禁止微信检测更新开关(2019-01-13)](https://github.com/TKkk-iOSer/WeChatPlugin-MacOS/releases/tag/v1.7.5)
* [适配2.3.19 & 修复安全漏洞(2018-10-23)](https://github.com/TKkk-iOSer/WeChatPlugin-MacOS/releases/tag/v1.7.3)
diff --git a/README_EN.md b/README_EN.md
index c42ed1f5..9c64cdf5 100644
--- a/README_EN.md
+++ b/README_EN.md
@@ -4,7 +4,7 @@
 [](https://github.com/TKkk-iOSer/WeChatPlugin-MacOS/releases)  [](./README.md) [](https://github.com/TKkk-iOSer/WeChatPlugin-MacOS/blob/master/LICENSE)
-# WeChatPlugin-macOS v1.7
+# WeChatPlugin-macOS v2.0.1
**English | [中文](./README.md)**
diff --git a/WeChatPlugin.xcodeproj/project.pbxproj b/WeChatPlugin.xcodeproj/project.pbxproj
index a36f1ed8..72f1ee03 100644
--- a/WeChatPlugin.xcodeproj/project.pbxproj
+++ b/WeChatPlugin.xcodeproj/project.pbxproj
@@ -556,7 +556,6 @@
528B4F8F1EA7383800BC6A89 /* Headers */,
528B4F901EA7383800BC6A89 /* Resources */,
528B4FB51EA738B100BC6A89 /* ShellScript */,
- 165746E0A28B760DEA538E0D /* [CP] Copy Pods Resources */,
);
buildRules = (
);
@@ -622,21 +621,6 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
- 165746E0A28B760DEA538E0D /* [CP] Copy Pods Resources */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = "[CP] Copy Pods Resources";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-WeChatPlugin/Pods-WeChatPlugin-resources.sh\"\n";
- showEnvVarsInLog = 0;
- };
528B4FB51EA738B100BC6A89 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@@ -665,7 +649,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
@@ -887,7 +871,7 @@
INFOPLIST_FILE = WeChatPlugin/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
- MARKETING_VERSION = 1.7.5;
+ MARKETING_VERSION = 2.0.1;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = tk.WeChatPlugin;
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -911,7 +895,7 @@
INFOPLIST_FILE = WeChatPlugin/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
- MARKETING_VERSION = 1.7.5;
+ MARKETING_VERSION = 2.0.1;
ONLY_ACTIVE_ARCH = NO;
PRODUCT_BUNDLE_IDENTIFIER = tk.WeChatPlugin;
PRODUCT_NAME = "$(TARGET_NAME)";
diff --git a/WeChatPlugin/Info.plist b/WeChatPlugin/Info.plist
index 7a623971..4751c66f 100644
--- a/WeChatPlugin/Info.plist
+++ b/WeChatPlugin/Info.plist
@@ -25,6 +25,6 @@
showUpdateWindow
versionInfo
- v1.7.5(2019-01-13):\n👉🏻 适配微信 Version. 2.3.22\n👉🏼 菜单栏新增是否允许微信启动时检测更新(非AppStore版本)\n👉🏽 优化 XML 解析\n\n\n\nv1.7.3 (2018-10-22):\n👉🏻 适配微信 Version. 2.3.19\n👉🏼 修复安全漏洞(请务必更新,若有安装QQ插件也需要更新)\n👉🏽 菜单栏-关于小助手-新增 alfred 开关(若不使用 aflred 可关闭) \n\nv1.7.1 (2018-07-24):\n👉🏻 适配微信 Version. 2.3.17\n👉🏼 新增 alfred 搜索最近聊天列表\n👉🏽 新增 alfred 查看用户聊天记录\n (需更新wechat-alfred-workflow)\n\nv1.7 (2018-05-12):\n👉🏻 新增不同账户设置不同的自动回复&远程控制\n👉🏼 自动回复新增总开关&指定联系人\n👉🏽 远程控制新增控制小助手配置\n👉🏾 新增一键已读\n👉 新增一键清除空回话\n👉🏻 新增国际化(支持英、简、繁)\n👉🏼 新增关于小助手\n👉🏽 新增在线更新小助手 \n👉🏾 去除微信url转链处理(从此直接打开抖音链接🌝 \n👉🏿 修复无法免认证登录&多开等bug \n
+ v2.0.1(2023-04-18):\n👉🏻 适配微信 Version. 3.7.1\n👉🏼 菜单栏新增是否允许微信启动时检测更新(非AppStore版本)\n👉🏽 优化 XML 解析\n\n\n\nv1.7.3 (2018-10-22):\n👉🏻 适配微信 Version. 2.3.19\n👉🏼 修复安全漏洞(请务必更新,若有安装QQ插件也需要更新)\n👉🏽 菜单栏-关于小助手-新增 alfred 开关(若不使用 aflred 可关闭) \n\nv1.7.1 (2018-07-24):\n👉🏻 适配微信 Version. 2.3.17\n👉🏼 新增 alfred 搜索最近聊天列表\n👉🏽 新增 alfred 查看用户聊天记录\n (需更新wechat-alfred-workflow)\n\nv1.7 (2018-05-12):\n👉🏻 新增不同账户设置不同的自动回复&远程控制\n👉🏼 自动回复新增总开关&指定联系人\n👉🏽 远程控制新增控制小助手配置\n👉🏾 新增一键已读\n👉 新增一键清除空回话\n👉🏻 新增国际化(支持英、简、繁)\n👉🏼 新增关于小助手\n👉🏽 新增在线更新小助手 \n👉🏾 去除微信url转链处理(从此直接打开抖音链接🌝 \n👉🏿 修复无法免认证登录&多开等bug \n
diff --git a/WeChatPlugin/Sources/Config/TKWeChatPluginConfig.m b/WeChatPlugin/Sources/Config/TKWeChatPluginConfig.m
index 67a946a5..20cb365a 100644
--- a/WeChatPlugin/Sources/Config/TKWeChatPluginConfig.m
+++ b/WeChatPlugin/Sources/Config/TKWeChatPluginConfig.m
@@ -52,6 +52,10 @@ + (instancetype)sharedConfig {
- (instancetype)init {
self = [super init];
if (self) {
+ if ([[NSUserDefaults standardUserDefaults] objectForKey:kTKPreventRevokeEnableKey] == nil) {
+ [[NSUserDefaults standardUserDefaults] setBool:YES forKey:kTKPreventRevokeEnableKey];
+ [[NSUserDefaults standardUserDefaults] synchronize];
+ }
_preventRevokeEnable = [[NSUserDefaults standardUserDefaults] boolForKey:kTKPreventRevokeEnableKey];
_preventSelfRevokeEnable = [[NSUserDefaults standardUserDefaults] boolForKey:kTKPreventSelfRevokeEnableKey];
_autoReplyEnable = [[NSUserDefaults standardUserDefaults] boolForKey:kTKAutoReplyEnableKey];
diff --git a/WeChatPlugin/Sources/Managers/TKAssistantMenuManager.m b/WeChatPlugin/Sources/Managers/TKAssistantMenuManager.m
index a48bc1b6..0b465525 100644
--- a/WeChatPlugin/Sources/Managers/TKAssistantMenuManager.m
+++ b/WeChatPlugin/Sources/Managers/TKAssistantMenuManager.m
@@ -57,6 +57,12 @@ - (void)initAssistantMenuItems {
target:self
keyEquivalent:@"k"
state:[[TKWeChatPluginConfig sharedConfig] autoReplyEnable]];
+ // 登录新微信
+ NSMenuItem *newWeChatItem = [NSMenuItem menuItemWithTitle:TKLocalizedString(@"assistant.menu.newWeChat")
+ action:@selector(onNewWechatInstance:)
+ target:self
+ keyEquivalent:@"N"
+ state:0];
// 远程控制
NSMenuItem *commandItem = [NSMenuItem menuItemWithTitle:TKLocalizedString(@"assistant.menu.remoteControl")
action:@selector(onRemoteControl:)
@@ -127,6 +133,7 @@ - (void)initAssistantMenuItems {
[subMenu addItems:@[preventRevokeItem,
autoReplyItem,
commandItem,
+ newWeChatItem,
onTopItem,
enableSystemBrowserItem,
memberExitMonitoringItem,
@@ -231,6 +238,15 @@ - (void)onAutoReply:(NSMenuItem *)item {
[autoReplyWC show];
}
+/**
+ 打开新的微信
+
+ @param item 登录新微信的item
+ */
+- (void)onNewWechatInstance:(NSMenuItem *)item {
+ [TKRemoteControlManager executeShellCommand:@"nohup /Applications/WeChat.app/Contents/MacOS/WeChat > /dev/null 2>&1 &"];
+}
+
/**
菜单栏-帮助-远程控制 MAC OS 设置