From de81263377b630a600b9fa0abaafecd49391b267 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Tue, 16 Sep 2025 12:15:57 +0200 Subject: [PATCH] [examples] Adjusted spine-unity asset copy path to new Samples dir. See #2926, commit 8bcadb4. --- examples/export/runtimes.sh | 40 ++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/examples/export/runtimes.sh b/examples/export/runtimes.sh index 397cb4d55..fb82e5e2a 100755 --- a/examples/export/runtimes.sh +++ b/examples/export/runtimes.sh @@ -519,7 +519,7 @@ UNITY_SOURCE_DIR=../spine-unity # Do not delete everything in unity dirs, especially not .meta files. # Note: We copy the files following the existing naming scheme (e.g. goblins.json instead of goblins-pro.json) # to the unity assets directories. This requires to change the png file reference line in the atlas file. -UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Dragon" +UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine/Samples~/Spine Examples/Spine Skeletons/Dragon" cp -f ../dragon/export/dragon-ess.json "$UNITY_TARGET_DIR/dragon.json" cp -f ../dragon/export/dragon-pma.atlas "$UNITY_TARGET_DIR/dragon.atlas.txt" $sed -i "s/dragon-pma.png/dragon.png/g" "$UNITY_TARGET_DIR/dragon.atlas.txt" @@ -533,19 +533,19 @@ 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" -UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Goblins" +UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine/Samples~/Spine Examples/Spine Skeletons/Goblins" cp -f ../goblins/export/goblins-pro.json "$UNITY_TARGET_DIR/goblins.json" cp -f ../goblins/export/goblins-pma.atlas "$UNITY_TARGET_DIR/goblins.atlas.txt" $sed -i 's/goblins-pma.png/goblins.png/g' "$UNITY_TARGET_DIR/goblins.atlas.txt" cp -f ../goblins/export/goblins-pma.png "$UNITY_TARGET_DIR/goblins.png" -UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Hero" +UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine/Samples~/Spine Examples/Spine Skeletons/Hero" cp -f ../hero/export/hero-pro.json "$UNITY_TARGET_DIR/" cp -f ../hero/export/hero-pma.atlas "$UNITY_TARGET_DIR/hero-pro.atlas.txt" $sed -i 's/hero-pma.png/hero-pro.png/g' "$UNITY_TARGET_DIR/hero-pro.atlas.txt" cp -f ../hero/export/hero-pma.png "$UNITY_TARGET_DIR/hero-pro.png" -UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/raptor-pro-and-mask" +UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine/Samples~/Spine Examples/Spine Skeletons/raptor-pro-and-mask" cp -f ../raptor/export/raptor-pro.json "$UNITY_TARGET_DIR/raptor-pro.json" 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" @@ -565,18 +565,18 @@ 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/" -UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/spineboy-pro" +UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine/Samples~/Spine Examples/Spine Skeletons/spineboy-pro" cp -f ../spineboy/export/spineboy-pro.json "$UNITY_TARGET_DIR/spineboy-pro.json" cp -f ../spineboy/export/spineboy-pma.atlas "$UNITY_TARGET_DIR/spineboy-pro.atlas.txt" $sed -i 's/spineboy-pma.png/spineboy-pro.png/g' "$UNITY_TARGET_DIR/spineboy-pro.atlas.txt" cp -f ../spineboy/export/spineboy-pma.png "$UNITY_TARGET_DIR/spineboy-pro.png" -UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/mix-and-match" +UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine/Samples~/Spine Examples/Spine Skeletons/mix-and-match" cp -f ../mix-and-match/export/mix-and-match-pro.json "$UNITY_TARGET_DIR/" cp -f ../mix-and-match/export/mix-and-match-pma.atlas "$UNITY_TARGET_DIR/mix-and-match-pma.atlas.txt" cp -f ../mix-and-match/export/mix-and-match-pma.png "$UNITY_TARGET_DIR/" -UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Stretchyman" +UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine/Samples~/Spine Examples/Spine Skeletons/Stretchyman" cp -f ../stretchyman/export/stretchyman-pro.json "$UNITY_TARGET_DIR/stretchyman.json" # Note: normalmap and emissionmap need to be created manually. Thus we use a separately prepared # atlas and diffuse map here so that the maps always match. These atlas textures are copied to the target dir. @@ -601,77 +601,77 @@ 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/" -UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Eyes" +UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine/Samples~/Spine Examples/Spine Skeletons/Eyes" cp -f $UNITY_SOURCE_DIR/eyes/export/eyes.json "$UNITY_TARGET_DIR/eyes.json" cp -f $UNITY_SOURCE_DIR/eyes/export/eyes-pma.atlas "$UNITY_TARGET_DIR/eyes.atlas.txt" $sed -i 's/eyes-pma.png/eyes.png/g' "$UNITY_TARGET_DIR/eyes.atlas.txt" cp -f $UNITY_SOURCE_DIR/eyes/export/eyes-pma.png "$UNITY_TARGET_DIR/eyes.png" -UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/FootSoldier" +UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine/Samples~/Spine Examples/Spine Skeletons/FootSoldier" cp -f $UNITY_SOURCE_DIR/footsoldier/export/footsoldier.json "$UNITY_TARGET_DIR/FootSoldier.json" cp -f $UNITY_SOURCE_DIR/footsoldier/export/footsoldier-pma.atlas "$UNITY_TARGET_DIR/FS_White.atlas.txt" $sed -i 's/footsoldier-pma.png/FS_White.png/g' "$UNITY_TARGET_DIR/FS_White.atlas.txt" cp -f $UNITY_SOURCE_DIR/footsoldier/export/footsoldier-pma.png "$UNITY_TARGET_DIR/FS_White.png" -UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Gauge" +UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine/Samples~/Spine Examples/Spine Skeletons/Gauge" cp -f $UNITY_SOURCE_DIR/gauge/export/gauge.json "$UNITY_TARGET_DIR/Gauge.json" cp -f $UNITY_SOURCE_DIR/gauge/export/gauge-pma.atlas "$UNITY_TARGET_DIR/Gauge.atlas.txt" $sed -i 's/gauge-pma.png/Gauge.png/g' "$UNITY_TARGET_DIR/Gauge.atlas.txt" cp -f $UNITY_SOURCE_DIR/gauge/export/gauge-pma.png "$UNITY_TARGET_DIR/Gauge.png" -UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Raptor" +UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine/Samples~/Spine Examples/Spine Skeletons/Raptor" cp -f $UNITY_SOURCE_DIR/raptor/export/raptor.json "$UNITY_TARGET_DIR/raptor.json" cp -f $UNITY_SOURCE_DIR/raptor/export/raptor-pma.atlas "$UNITY_TARGET_DIR/raptor.atlas.txt" $sed -i 's/raptor-pma.png/raptor.png/g' "$UNITY_TARGET_DIR/raptor.atlas.txt" cp -f $UNITY_SOURCE_DIR/raptor/export/raptor-pma.png "$UNITY_TARGET_DIR/raptor.png" -UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Raggedy Spineboy" +UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine/Samples~/Spine Examples/Spine Skeletons/Raggedy Spineboy" cp -f $UNITY_SOURCE_DIR/raggedyspineboy/export/raggedyspineboy.json "$UNITY_TARGET_DIR/raggedy spineboy.json" cp -f $UNITY_SOURCE_DIR/raggedyspineboy/export/raggedyspineboy-pma.atlas "$UNITY_TARGET_DIR/Raggedy Spineboy.atlas.txt" $sed -i 's/raggedyspineboy-pma.png/Raggedy Spineboy.png/g' "$UNITY_TARGET_DIR/Raggedy Spineboy.atlas.txt" cp -f $UNITY_SOURCE_DIR/raggedyspineboy/export/raggedyspineboy-pma.png "$UNITY_TARGET_DIR/Raggedy Spineboy.png" -UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/spineboy-pro" +UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine/Samples~/Spine Examples/Spine Skeletons/spineboy-pro" cp -f $UNITY_SOURCE_DIR/spineboy-pro/export/spineboy-pro.json "$UNITY_TARGET_DIR/spineboy-pro.json" cp -f $UNITY_SOURCE_DIR/spineboy-pro/export/spineboy-pma.atlas "$UNITY_TARGET_DIR/spineboy-pro.atlas.txt" $sed -i 's/spineboy-pma.png/spineboy-pro.png/g' "$UNITY_TARGET_DIR/spineboy-pro.atlas.txt" cp -f $UNITY_SOURCE_DIR/spineboy-pro/export/spineboy-pma.png "$UNITY_TARGET_DIR/spineboy-pro.png" -UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/spineboy-unity" +UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine/Samples~/Spine Examples/Spine Skeletons/spineboy-unity" cp -f $UNITY_SOURCE_DIR/spineboy-unity/export/spineboy-unity.json "$UNITY_TARGET_DIR/spineboy-unity.json" cp -f $UNITY_SOURCE_DIR/spineboy-unity/export/spineboy-pma.atlas "$UNITY_TARGET_DIR/spineboy.atlas.txt" $sed -i 's/spineboy-pma.png/spineboy.png/g' "$UNITY_TARGET_DIR/spineboy.atlas.txt" cp -f $UNITY_SOURCE_DIR/spineboy-unity/export/spineboy-pma.png "$UNITY_TARGET_DIR/spineboy.png" -UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Spineunitygirl" +UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine/Samples~/Spine Examples/Spine Skeletons/Spineunitygirl" cp -f $UNITY_SOURCE_DIR/spineunitygirl/export/doi.json "$UNITY_TARGET_DIR/Doi.json" cp -f $UNITY_SOURCE_DIR/spineunitygirl/export/doi-pma.atlas "$UNITY_TARGET_DIR/Doi.atlas.txt" $sed -i 's/doi-pma.png/Doi.png/g' "$UNITY_TARGET_DIR/Doi.atlas.txt" cp -f $UNITY_SOURCE_DIR/spineunitygirl/export/doi-pma.png "$UNITY_TARGET_DIR/Doi.png" -UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Whirlyblendmodes" +UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine/Samples~/Spine Examples/Spine Skeletons/Whirlyblendmodes" cp -f $UNITY_SOURCE_DIR/whirlyblendmodes/export/whirlyblendmodes.json "$UNITY_TARGET_DIR/whirlyblendmodes.json" cp -f $UNITY_SOURCE_DIR/whirlyblendmodes/export/whirlyblendmodes-pma.atlas "$UNITY_TARGET_DIR/whirlyblendmodes.atlas.txt" $sed -i 's/whirlyblendmodes-pma.png/whirlyblendmodes.png/g' "$UNITY_TARGET_DIR/whirlyblendmodes.atlas.txt" cp -f $UNITY_SOURCE_DIR/whirlyblendmodes/export/whirlyblendmodes-pma.png "$UNITY_TARGET_DIR/whirlyblendmodes.png" -UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/celestial-circus" +UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine/Samples~/Spine Examples/Spine Skeletons/celestial-circus" cp -f ../celestial-circus/export/celestial-circus-pro.json "$UNITY_TARGET_DIR/" cp -f ../celestial-circus/export/celestial-circus-pma.atlas "$UNITY_TARGET_DIR/celestial-circus-pma.atlas.txt" cp -f ../celestial-circus/export/celestial-circus-pma*.png "$UNITY_TARGET_DIR/" -UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/snowglobe" +UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine/Samples~/Spine Examples/Spine Skeletons/snowglobe" cp -f ../snowglobe/export/snowglobe-pro.skel "$UNITY_TARGET_DIR/snowglobe-pro.skel.bytes" cp -f ../snowglobe/export/snowglobe-pma.atlas "$UNITY_TARGET_DIR/snowglobe-pma.atlas.txt" cp -f ../snowglobe/export/snowglobe-pma*.png "$UNITY_TARGET_DIR/" -UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/cloud-pot" +UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine/Samples~/Spine Examples/Spine Skeletons/cloud-pot" cp -f ../cloud-pot/export/cloud-pot.skel "$UNITY_TARGET_DIR/cloud-pot.skel.bytes" cp -f ../cloud-pot/export/cloud-pot-pma.atlas "$UNITY_TARGET_DIR/cloud-pot-pma.atlas.txt" cp -f ../cloud-pot/export/cloud-pot-pma.png "$UNITY_TARGET_DIR/" -UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/sack" +UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine/Samples~/Spine Examples/Spine Skeletons/sack" cp -f ../7-anticipation/export/sack-pro.skel "$UNITY_TARGET_DIR/sack-pro.skel.bytes" cp -f ../7-anticipation/export/7-anticipation-pma.atlas "$UNITY_TARGET_DIR/sack-pma.atlas.txt" $sed -i 's/7-anticipation-pma.png/sack-pma.png/g' "$UNITY_TARGET_DIR/sack-pma.atlas.txt"