feat: replace init.sh with justfile

pull/1/head
Sara 2025-01-19 14:08:41 +01:00
parent 25f9a4c4fd
commit 5251e6737e
2 changed files with 10 additions and 4 deletions

View File

@ -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/

10
justfile Normal file
View File

@ -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}}