Skip to content

Commit 810dd8d

Browse files
committed
[godot] Fix icons in GDExtension package, closes #3186
1 parent 8bb01e4 commit 810dd8d

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

‎.github/workflows/spine-godot-extension-v4.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,11 @@ jobs:
255255
cd artifacts
256256
257257
# Create directories matching the expected structure
258-
mkdir -p bin/{windows,linux,macos/macos.framework,ios,android,web}
258+
mkdir -p bin/{windows,linux,macos/macos.framework,ios,android,web,icons}
259259
260-
# Ensure gdextension file is in root
260+
# Ensure gdextension file and icons are in bin
261261
cp ../spine-godot/spine_godot_extension.gdextension bin/
262+
cp ../spine-godot/spine_godot/icons/Spine*.svg bin/icons/
262263
263264
# Move artifacts to their correct locations
264265
mv gdextension-windows-$GODOT_TAG/* bin/windows/

‎spine-godot/build/setup-extension.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ rm -rf godot-cpp
6161
git clone --depth 1 $godot_cpp_repo -b $godot_cpp_branch
6262

6363
rm -rf example-v4-extension/bin
64-
mkdir -p example-v4-extension/bin
64+
mkdir -p example-v4-extension/bin/icons
6565

6666
if [ $dev == "true" ]; then
6767
echo "Dev build, creating godot-cpp/dev"
@@ -74,6 +74,7 @@ if [ $dev == "true" ]; then
7474
fi
7575

7676
cp spine_godot_extension.gdextension example-v4-extension/bin
77+
cp spine_godot/icons/Spine*.svg example-v4-extension/bin/icons
7778
rm -rf spine_godot/spine-cpp
7879
cp -r ../spine-cpp spine_godot
7980

‎spine-godot/spine_godot_extension.gdextension‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
entry_symbol = "spine_godot_library_init"
44
compatibility_minimum = "4.1"
55

6+
[icons]
7+
8+
SpineSprite = "icons/SpineSprite.svg"
9+
SpineSkeletonDataResource = "icons/SpineSkeletonDataResource.svg"
10+
SpineSkeletonFileResource = "icons/SpineSkeletonFileResource.svg"
11+
SpineAtlasResource = "icons/SpineAtlasResource.svg"
12+
SpineBoneNode = "icons/SpineBoneNode.svg"
13+
SpineSlotNode = "icons/SpineSlotNode.svg"
14+
SpineAnimationTrack = "icons/SpineAnimationTrack.svg"
15+
SpineMesh2D = "icons/SpineMesh2D.svg"
16+
617
[libraries]
718

819
macos.editor = "macos/libspine_godot.macos.editor.framework"

0 commit comments

Comments
 (0)