feat: added project.godot update as part of init.sh

main
Sara 2024-05-28 11:41:16 +02:00
parent f6db16a059
commit 6ca685342f
2 changed files with 2 additions and 2 deletions

View File

@ -10,6 +10,6 @@ config_version=5
[application] [application]
config/name="godot cpp template" config/name="EXAMPLE"
config/features=PackedStringArray("4.2", "Forward Plus") config/features=PackedStringArray("4.2", "Forward Plus")
config/icon="res://icon.svg" config/icon="res://icon.svg"

View File

@ -1,5 +1,5 @@
#! /bin/sh #! /bin/sh
git submodule update --init --recursive git submodule update --init --recursive
sed -i -e "s/EXAMPLE/$1/g" ./src/register_types.cpp ./SConstruct ./godot/bin/EXAMPLE.gdextension sed -i -e "s/EXAMPLE/$1/g" ./src/register_types.cpp ./SConstruct ./godot/bin/EXAMPLE.gdextension ./godot/project.godot
mv ./godot/bin/EXAMPLE.gdextension ./godot/bin/$1.gdextension mv ./godot/bin/EXAMPLE.gdextension ./godot/bin/$1.gdextension