diff --git a/init.sh b/init.sh deleted file mode 100755 index b19cfab..0000000 --- a/init.sh +++ /dev/null @@ -1,4 +0,0 @@ -#! /bin/sh - -sed -i -e "s/PROJECT/$1/g" ./engine/modules/PROJECT/register_types.h ./engine/modules/PROJECT/register_types.cpp ./project/project.godot -mv -r ./engine/modules/EXAMPLE/ ./engine/modules/$1/ diff --git a/justfile b/justfile new file mode 100644 index 0000000..1745394 --- /dev/null +++ b/justfile @@ -0,0 +1,10 @@ +run: build + cd project/ && ../engine/bin/godot.*.editor.x86_64 -e + +build: + cd engine/ && scons + +initialize-template projectname: + sed -i -e "s/PROJECT/{{projectname}}/g" ./engine/modules/PROJECT/register_types.h ./engine/modules/PROJECT/register_types.cpp ./project/project.godot + mv ./engine/modules/PROJECT ./engine/modules/{{projectname}} +