Skip to content

Commit

Permalink
Fix 覆盖安装会导致闪退
Browse files Browse the repository at this point in the history
  • Loading branch information
yanmao committed Sep 16, 2020
1 parent 39a2e21 commit de6b81f
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
Binary file modified WeChatExtension/.DS_Store
Binary file not shown.
Binary file modified WeChatExtension/Rely/Plugin/WeChatExtension.zip
Binary file not shown.
15 changes: 15 additions & 0 deletions WeChatExtension/Rely/Plugin/WeChatExtension/Update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@ app_executable_path="${app_bundle_path}/${app_name}"
app_executable_backup_path="${app_executable_path}_backup"
framework_path="${app_bundle_path}/${framework_name}.framework"

# 极少部分机器会出现签名异常情况,先执行卸载流程
if [ -f "$app_executable_backup_path" ]
then
rm "$app_executable_path"
rm -rf "$framework_path"
mv "$app_executable_backup_path" "$app_executable_path"

if [ ! -f "$app_executable_backup_path" ]
then
echo "\n\t卸载旧小助手成功,安装新版中..."
fi
#未发现小助手
fi

#安装流程
# 备份 WeChat 原始可执行文件
if [ ! -f "$app_executable_backup_path" ]
then
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,22 @@
uuid = "AB56AEDC-32DD-487C-8A33-2B18248C68CA"
type = "1"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "4726E899-39E5-4E30-A8B1-0981947E641B"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "WeChatExtension/Sources/Hook/NSObject+ThemeHook.m"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "745"
endingLineNumber = "745"
landmarkName = "-hook_addSubView:"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>

0 comments on commit de6b81f

Please sign in to comment.