mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
34 lines
958 B
Bash
Executable File
34 lines
958 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
cd "$(dirname "$0")"
|
|
|
|
# Source logging utilities
|
|
source ../formatters/logging/logging.sh
|
|
|
|
log_title "Spine Unreal Engine Setup"
|
|
|
|
log_action "Removing existing spine-cpp directory"
|
|
if RM_OUTPUT=$(rm -rf Plugins/SpinePlugin/Source/SpinePlugin/Public/spine-cpp 2>&1); then
|
|
log_ok
|
|
else
|
|
log_warn
|
|
fi
|
|
|
|
log_action "Creating spine-cpp directory and copying include"
|
|
if CP_INCLUDE_OUTPUT=$(mkdir -p Plugins/SpinePlugin/Source/SpinePlugin/Public/spine-cpp && cp -r ../spine-cpp/include Plugins/SpinePlugin/Source/SpinePlugin/Public/spine-cpp/ 2>&1); then
|
|
log_ok
|
|
else
|
|
log_fail
|
|
log_error_output "$CP_INCLUDE_OUTPUT"
|
|
exit 1
|
|
fi
|
|
|
|
log_action "Copying spine-cpp src directory"
|
|
if CP_SRC_OUTPUT=$(cp -r ../spine-cpp/src Plugins/SpinePlugin/Source/SpinePlugin/Public/spine-cpp/ 2>&1); then
|
|
log_ok
|
|
log_summary "✓ Unreal Engine setup completed successfully"
|
|
else
|
|
log_fail
|
|
log_error_output "$CP_SRC_OUTPUT"
|
|
exit 1
|
|
fi |