From df1d066ece0ba0e455915a45626554e73925dc84 Mon Sep 17 00:00:00 2001 From: chenyingzhou Date: Tue, 22 Jun 2021 11:26:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E8=A3=85=E8=84=9A=E6=9C=AC=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=E8=87=AA=E5=8A=A8=E7=AD=BE=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WeChatExtension/Rely/Install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/WeChatExtension/Rely/Install.sh b/WeChatExtension/Rely/Install.sh index 53926c4d..7a624612 100755 --- a/WeChatExtension/Rely/Install.sh +++ b/WeChatExtension/Rely/Install.sh @@ -57,4 +57,12 @@ fi if [[ "$result" == 'y' ]]; then cp -r "${shell_path}/Plugin/WeChatExtension/${framework_name}.framework" ${app_bundle_path} ${shell_path}/insert_dylib --all-yes "${framework_path}/${framework_name}" "$app_executable_backup_path" "$app_executable_path" + echo "" + read -t 150 -p "需要对微信重新签名才能运行,是否立即重新签名(可能需要输入密码)?[y/n] " result + if [ "$result" == 'y' ] || [ "$result" == 'Y' ]; then + sudo codesign --sign - --force --deep $wechat_path + else + echo "你选择不要立即签名,如果微信无法正常启动,请手动执行以下命令:" + echo "sudo codesign --sign - --force --deep $wechat_path" + fi fi