支持微信版本2.3.29消息防撤回

This commit is contained in:
a244573118
2020-01-02 20:00:33 +08:00
parent 54534c2f49
commit c0537da61a
4 changed files with 12 additions and 10 deletions
+3 -3
View File
@@ -18,11 +18,11 @@ framework_name="WeChatIntercept"
app_bundle_path="${WeChat_path}/Contents/MacOS"
app_executable_path="${app_bundle_path}/${app_name}"
app_executable_backup_path="${app_executable_path}_backup"
framework_path="${shell_path}/${framework_name}.framework"
framework_path="${app_bundle_path}/${framework_name}.framework"
if [ ! -w "$WeChat_path" ]
then
echo -e "为了将ZY助手写入微信, 请输入密码 : "
sudo chown -R $(whoami) "$WeChat_path"
sudo chmod -R 777 $(whoami) "$WeChat_path"
fi
if [ ! -f "$app_executable_backup_path" ] || [ -n "$1" -a "$1" = "--force" ]
@@ -35,7 +35,7 @@ else
fi
if [[ "$result" == 'y' ]]; then
cp -r $framework_path ${app_bundle_path}
cp -r "${shell_path}/${framework_name}.framework" ${app_bundle_path}
${shell_path}/insert_dylib --all-yes "${framework_path}/${framework_name}" "$app_executable_backup_path" "$app_executable_path"
echo "安装成功!"
fi