From 9c7bb840f41e7439bf556498b24fdd85e9e9aaab Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Fri, 17 Nov 2023 17:21:17 +0100 Subject: [PATCH] [examples] Adjusted runtimes copy script to 4.2-beta skeleton output and modified dir structures. --- examples/export/runtimes.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/examples/export/runtimes.sh b/examples/export/runtimes.sh index 1a211e3562..176290512e 100755 --- a/examples/export/runtimes.sh +++ b/examples/export/runtimes.sh @@ -90,7 +90,7 @@ cp -f ../mix-and-match/export/mix-and-match.atlas "$ROOT/spine-cocos2dx/example/ cp -f ../mix-and-match/export/mix-and-match.png "$ROOT/spine-cocos2dx/example/Resources/common/" echo "spine-flutter" -rm -f "$ROOT/spine-flutter/example/assets/"* +rm -rf "$ROOT/spine-flutter/example/assets/"* cp -f ../spineboy/export/spineboy-pro.json "$ROOT/spine-flutter/example/assets/" cp -f ../spineboy/export/spineboy-pro.skel "$ROOT/spine-flutter/example/assets/" cp -f ../spineboy/export/spineboy.atlas "$ROOT/spine-flutter/example/assets/" @@ -537,13 +537,11 @@ $sed -i "s/dragon-pma_2.png/dragon2.png/g" "$UNITY_TARGET_DIR/dragon.atlas.txt" $sed -i "s/dragon-pma_3.png/dragon3.png/g" "$UNITY_TARGET_DIR/dragon.atlas.txt" $sed -i "s/dragon-pma_4.png/dragon4.png/g" "$UNITY_TARGET_DIR/dragon.atlas.txt" $sed -i "s/dragon-pma_5.png/dragon5.png/g" "$UNITY_TARGET_DIR/dragon.atlas.txt" -$sed -i "s/dragon-pma_6.png/dragon6.png/g" "$UNITY_TARGET_DIR/dragon.atlas.txt" cp -f ../dragon/export/dragon-pma.png "$UNITY_TARGET_DIR/dragon.png" cp -f ../dragon/export/dragon-pma_2.png "$UNITY_TARGET_DIR/dragon2.png" cp -f ../dragon/export/dragon-pma_3.png "$UNITY_TARGET_DIR/dragon3.png" cp -f ../dragon/export/dragon-pma_4.png "$UNITY_TARGET_DIR/dragon4.png" cp -f ../dragon/export/dragon-pma_5.png "$UNITY_TARGET_DIR/dragon5.png" -cp -f ../dragon/export/dragon-pma_6.png "$UNITY_TARGET_DIR/dragon6.png" UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Goblins" cp -f ../goblins/export/goblins-pro.json "$UNITY_TARGET_DIR/goblins.json" @@ -563,12 +561,12 @@ cp -f ../raptor/export/raptor-pma.atlas "$UNITY_TARGET_DIR/raptor-pma.atlas.txt" cp -f ../raptor/export/raptor-pma.png "$UNITY_TARGET_DIR/raptor-pma.png" # URP packages -UNITY_TARGET_DIR="$ROOT/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Examples/2D/Spine Skeletons/RaptorURP" +UNITY_TARGET_DIR="$ROOT/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Samples~/Examples/2D/Spine Skeletons/RaptorURP" cp -f ../raptor/export/raptor-pro.json "$UNITY_TARGET_DIR/" cp -f ../raptor/manual-maps/raptor.atlas "$UNITY_TARGET_DIR/raptor.atlas.txt" cp -f ../raptor/manual-maps/raptor.png "$UNITY_TARGET_DIR/" cp -f ../raptor/manual-maps/raptor-rim-mask.png "$UNITY_TARGET_DIR/" -UNITY_TARGET_DIR="$ROOT/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Examples/3D/Spine Skeletons/RaptorURP" +UNITY_TARGET_DIR="$ROOT/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Samples~/Examples/3D/Spine Skeletons/RaptorURP" cp -f ../raptor/export/raptor-pro.json "$UNITY_TARGET_DIR/" cp -f ../raptor/export/raptor.atlas "$UNITY_TARGET_DIR/raptor.atlas.txt" cp -f ../raptor/export/raptor.png "$UNITY_TARGET_DIR/" @@ -599,14 +597,14 @@ cp -f ../stretchyman/manual-maps/stretchyman-normals.png "$UNITY_TARGET_DIR/" cp -f ../stretchyman/manual-maps/stretchyman-emission.png "$UNITY_TARGET_DIR/" # URP packages -UNITY_TARGET_DIR="$ROOT/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Examples/2D/Spine Skeletons/StretchymanURP" +UNITY_TARGET_DIR="$ROOT/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Samples~/Examples/2D/Spine Skeletons/StretchymanURP" cp -f ../stretchyman/export/stretchyman-pro.json "$UNITY_TARGET_DIR/stretchyman.json" cp -f ../stretchyman/manual-maps/stretchyman.atlas "$UNITY_TARGET_DIR/stretchyman.atlas.txt" cp -f ../stretchyman/manual-maps/stretchyman.png "$UNITY_TARGET_DIR/" cp -f ../stretchyman/manual-maps/stretchyman-normals.png "$UNITY_TARGET_DIR/" cp -f ../stretchyman/manual-maps/stretchyman-emission.png "$UNITY_TARGET_DIR/" cp -f ../stretchyman/manual-maps/stretchyman-rim-mask.png "$UNITY_TARGET_DIR/" -UNITY_TARGET_DIR="$ROOT/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Examples/3D/Spine Skeletons/StretchymanURP" +UNITY_TARGET_DIR="$ROOT/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Samples~/Examples/3D/Spine Skeletons/StretchymanURP" cp -f ../stretchyman/export/stretchyman-pro.json "$UNITY_TARGET_DIR/stretchyman.json" cp -f ../stretchyman/manual-maps/stretchyman.atlas "$UNITY_TARGET_DIR/stretchyman.atlas.txt" cp -f ../stretchyman/manual-maps/stretchyman.png "$UNITY_TARGET_DIR/"