main
pengjunwu 2024-01-24 15:35:05 +08:00
parent ac97190668
commit 472807abd8
2 changed files with 20 additions and 5 deletions

View File

@ -1,13 +1,27 @@
#!/bin/bash
script_directory="$(cd "$(dirname "$0")" && pwd)"
if [ "$#" -eq 0 ]; then
echo "Usage: $0 <text>"
exit 1
fi
#if [ "$#" -eq 0 ]; then
# echo "Usage: $0 <text>"
# exit 1
#fi
text="$1"
#测试用
#text=" at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.GetBuildPlayerOptions (UnityEditor.BuildPlayerOptions defaultBuildPlayerOptions) [0x00001] in /Volumes/jenkins1/sharedspace/ra_2022.3/Editor/Mono/BuildPlayerWindowBuildMethods.cs:209
# at BatchBuildBase.BuildContentAndPlayer () [0x000e9] in /Users/mayuanzheng/.jenkins/workspace/NLD_android_debug/ProjectNLD/Assets/PhxhSDK/Editor/BuildLauncherBase.cs:419
# at BatchBuild.BuildContentAndPlayer () [0x000f6] in /Users/mayuanzheng/.jenkins/workspace/NLD_android_debug/ProjectNLD/Assets/Editor/Common/BuildLauncher.cs:185
# UnityEngine.StackTraceUtility:ExtractStackTrace () (at /Volumes/jenkins1/sharedspace/ra_2022.3/Runtime/Export/Scripting/StackTrace.cs:37)
# UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
# UnityEngine.Logger:Log (UnityEngine.LogType,object)
# UnityEngine.Debug:LogError (object)
# BatchBuild:BuildContentAndPlayer () (at Assets/Editor/Common/BuildLauncher.cs:192)
#
# (Filename: Assets/Editor/Common/BuildLauncher.cs Line: 192)"
echo "blame start $text"
if [[ $text =~ (Assets\/[^:\(]+)\/([^:\(]+\.cs)[:\(]([0-9]+) ]]; then
path="${BASH_REMATCH[1]}"
fileName="${BASH_REMATCH[2]}"

View File

@ -20,7 +20,8 @@ echo "error: $error"
# Pass the result to another script
sh to_inner_wechat_robot.sh "$exception"
sh to_inner_wechat_robot.sh "$error"
sh blame.sh "$exception"
sh to_inner_wechat_robot.sh "$error"
sh blame.sh "$error"