forked from Hertog/godot-module-template
feat: replace init.sh with justfile
parent
25f9a4c4fd
commit
5251e6737e
4
init.sh
4
init.sh
|
@ -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/
|
|
|
@ -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}}
|
||||||
|
|
Loading…
Reference in New Issue