mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 09:46:02 +08:00
Cleaned up example export script.
This commit is contained in:
parent
893c3a25e4
commit
eada9e756b
@ -3,9 +3,9 @@ set -e
|
|||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
||||||
cd $SCRIPT_DIR
|
cd $SCRIPT_DIR
|
||||||
|
|
||||||
SPINE_EXE="C:/Program Files (x86)/Spine/Spine.com"
|
SPINE_EXE="C:/Program Files/Spine/Spine.com"
|
||||||
if [ ! -f "$SPINE_EXE" ]; then
|
if [ ! -f "$SPINE_EXE" ]; then
|
||||||
SPINE_EXE="/mnt/c/Program Files (x86)/Spine/Spine.com"
|
SPINE_EXE="/mnt/c/Program Files/Spine/Spine.com"
|
||||||
fi
|
fi
|
||||||
if [ ! -f "$SPINE_EXE" ]; then
|
if [ ! -f "$SPINE_EXE" ]; then
|
||||||
SPINE_EXE="/Applications/Spine/Spine.app/Contents/MacOS/Spine"
|
SPINE_EXE="/Applications/Spine/Spine.app/Contents/MacOS/Spine"
|
||||||
@ -15,11 +15,11 @@ echo "Spine exe: $SPINE_EXE"
|
|||||||
if [ "$#" -eq 1 ]; then
|
if [ "$#" -eq 1 ]; then
|
||||||
version=${1%/}
|
version=${1%/}
|
||||||
else
|
else
|
||||||
echo "Please enter the Spine editor version to use to clean the examples (e.g. 3.7.58-beta)"
|
echo "Enter the Spine editor version to use for the export (eg 3.8.99):"
|
||||||
read version
|
read version
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Cleaning export directories ..."
|
echo "Cleaning export directories..."
|
||||||
rm -rf ../alien/export/*
|
rm -rf ../alien/export/*
|
||||||
rm -rf ../coin/export/*
|
rm -rf ../coin/export/*
|
||||||
rm -rf ../dragon/export/*
|
rm -rf ../dragon/export/*
|
||||||
@ -37,7 +37,7 @@ rm -rf ../owl/export/*
|
|||||||
rm -rf ../mix-and-match/export/*
|
rm -rf ../mix-and-match/export/*
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Exporting..."
|
echo "Exporting assets..."
|
||||||
"$SPINE_EXE" \
|
"$SPINE_EXE" \
|
||||||
-u $version -f \
|
-u $version -f \
|
||||||
-i ../alien/alien-ess.spine -o ../alien/export -e json.json \
|
-i ../alien/alien-ess.spine -o ../alien/export -e json.json \
|
||||||
@ -131,17 +131,19 @@ echo "Exporting..."
|
|||||||
# Export Unity Assets
|
# Export Unity Assets
|
||||||
UNITY_BASE_DIR=../spine-unity
|
UNITY_BASE_DIR=../spine-unity
|
||||||
if [ -d "$UNITY_BASE_DIR" ]; then
|
if [ -d "$UNITY_BASE_DIR" ]; then
|
||||||
echo "Cleaning Unity export directories ..."
|
echo "Cleaning Unity export directories..."
|
||||||
rm -rf $UNITY_BASE_DIR/eyes/export/*
|
rm -rf $UNITY_BASE_DIR/eyes/export/*
|
||||||
rm -rf $UNITY_BASE_DIR/footsoldier/export/*
|
rm -rf $UNITY_BASE_DIR/footsoldier/export/*
|
||||||
rm -rf $UNITY_BASE_DIR/gauge/export/*
|
rm -rf $UNITY_BASE_DIR/gauge/export/*
|
||||||
rm -rf $UNITY_BASE_DIR/raggedyspineboy/export/*
|
rm -rf $UNITY_BASE_DIR/raggedyspineboy/export/*
|
||||||
|
rm -rf $UNITY_BASE_DIR/raptor/export/*
|
||||||
|
rm -rf $UNITY_BASE_DIR/spineboy-pro/export/*
|
||||||
rm -rf $UNITY_BASE_DIR/spineboy-unity/export/*
|
rm -rf $UNITY_BASE_DIR/spineboy-unity/export/*
|
||||||
rm -rf $UNITY_BASE_DIR/spineunitygirl/export/*
|
rm -rf $UNITY_BASE_DIR/spineunitygirl/export/*
|
||||||
rm -rf $UNITY_BASE_DIR/whirlyblendmodes/export/*
|
rm -rf $UNITY_BASE_DIR/whirlyblendmodes/export/*
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Exporting Unity Assets..."
|
echo "Exporting Unity assets..."
|
||||||
"$SPINE_EXE" \
|
"$SPINE_EXE" \
|
||||||
-u $version -f \
|
-u $version -f \
|
||||||
-i $UNITY_BASE_DIR/eyes/eyes.spine -o $UNITY_BASE_DIR/eyes/export -e json.json \
|
-i $UNITY_BASE_DIR/eyes/eyes.spine -o $UNITY_BASE_DIR/eyes/export -e json.json \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user