mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Fix logging in various Bash scripts
This commit is contained in:
parent
d409ff23ff
commit
f2fced8bf8
@ -97,8 +97,6 @@ while [[ $# -gt 0 ]]; do
|
||||
esac
|
||||
done
|
||||
|
||||
log_title "Code Formatting"
|
||||
|
||||
# Call individual formatter scripts (they handle their own logging)
|
||||
if [ "$FORMAT_CPP" = true ]; then
|
||||
"$dir/format-cpp.sh"
|
||||
|
||||
@ -37,7 +37,7 @@ log_detail "Platform: $(uname)"
|
||||
|
||||
log_action "Building all variants"
|
||||
if BUILD_OUTPUT=$(./build.sh clean release 2>&1); then
|
||||
log_ok "Build completed"
|
||||
log_ok
|
||||
else
|
||||
log_fail "Build failed"
|
||||
log_detail "$BUILD_OUTPUT"
|
||||
@ -58,7 +58,7 @@ for exe in build/headless-test*; do
|
||||
actual_output=$(echo "$OUTPUT" | head -10)
|
||||
|
||||
if [ "$actual_output" = "$EXPECTED_OUTPUT" ]; then
|
||||
log_ok "$exe_name"
|
||||
log_ok
|
||||
pass_count=$((pass_count + 1))
|
||||
else
|
||||
log_fail "$exe_name - output mismatch"
|
||||
|
||||
@ -19,9 +19,8 @@ fi
|
||||
if [ ! -d "node_modules" ]; then
|
||||
log_action "Installing dependencies"
|
||||
if npm install > /tmp/npm-install.log 2>&1; then
|
||||
log_ok "Dependencies installed"
|
||||
log_ok
|
||||
else
|
||||
log_fail "npm install failed"
|
||||
log_detail "$(cat /tmp/npm-install.log)"
|
||||
exit 1
|
||||
fi
|
||||
@ -57,7 +56,7 @@ fi
|
||||
|
||||
log_action "Generating C++ SkeletonSerializer"
|
||||
if output=$(npx -y tsx src/generate-cpp-serializer.ts 2>&1); then
|
||||
log_ok "C++ serializer generated successfully"
|
||||
log_ok
|
||||
else
|
||||
log_fail "Failed to generate C++ serializer"
|
||||
log_detail "$output"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user