mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +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 )"
|
||||
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
|
||||
SPINE_EXE="/mnt/c/Program Files (x86)/Spine/Spine.com"
|
||||
SPINE_EXE="/mnt/c/Program Files/Spine/Spine.com"
|
||||
fi
|
||||
if [ ! -f "$SPINE_EXE" ]; then
|
||||
SPINE_EXE="/Applications/Spine/Spine.app/Contents/MacOS/Spine"
|
||||
@ -15,7 +15,7 @@ echo "Spine exe: $SPINE_EXE"
|
||||
if [ "$#" -eq 1 ]; then
|
||||
version=${1%/}
|
||||
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
|
||||
fi
|
||||
|
||||
@ -37,7 +37,7 @@ rm -rf ../owl/export/*
|
||||
rm -rf ../mix-and-match/export/*
|
||||
|
||||
echo ""
|
||||
echo "Exporting..."
|
||||
echo "Exporting assets..."
|
||||
"$SPINE_EXE" \
|
||||
-u $version -f \
|
||||
-i ../alien/alien-ess.spine -o ../alien/export -e json.json \
|
||||
@ -136,12 +136,14 @@ if [ -d "$UNITY_BASE_DIR" ]; then
|
||||
rm -rf $UNITY_BASE_DIR/footsoldier/export/*
|
||||
rm -rf $UNITY_BASE_DIR/gauge/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/spineunitygirl/export/*
|
||||
rm -rf $UNITY_BASE_DIR/whirlyblendmodes/export/*
|
||||
|
||||
echo ""
|
||||
echo "Exporting Unity Assets..."
|
||||
echo "Exporting Unity assets..."
|
||||
"$SPINE_EXE" \
|
||||
-u $version -f \
|
||||
-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