Skip to content

Commit

Permalink
Merge pull request #1042 from chenyingzhou/master
Browse files Browse the repository at this point in the history
安装脚本加入自动签名
  • Loading branch information
MustangYM authored Jun 22, 2021
2 parents 531cd49 + df1d066 commit 8943438
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions WeChatExtension/Rely/Install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8943438

Please sign in to comment.