2022-09-02 20:42:36 +02:00
|
|
|
godot_project := "./project.godot"
|
2023-03-29 23:45:34 +02:00
|
|
|
godot_version := "4.0.1-stable"
|
|
|
|
godot_exe := "Godot_v" + godot_version + "_linux.x86_64"
|
|
|
|
godot_url := "https://github.com/godotengine/godot/releases/download/" + godot_version + "/" + godot_exe + ".zip"
|
2022-09-02 20:42:36 +02:00
|
|
|
godot_exe_dir := "~/bin"
|
2023-03-29 23:45:34 +02:00
|
|
|
godot_path := godot_exe_dir / godot_exe
|
2022-09-02 20:42:36 +02:00
|
|
|
|
|
|
|
setup:
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
if [ ! -e {{godot_path}} ]; then
|
2023-03-29 23:45:34 +02:00
|
|
|
curl {{godot_url}} -LO
|
2022-09-02 20:42:36 +02:00
|
|
|
unzip Godot*.zip
|
|
|
|
mkdir -p {{godot_exe_dir}}
|
|
|
|
mv {{godot_exe}} {{godot_exe_dir}}
|
|
|
|
rm Godot*.zip
|
|
|
|
fi
|
|
|
|
|
|
|
|
#run:
|
|
|
|
# nixGL zig build run
|
|
|
|
|
|
|
|
godot: setup
|
2023-03-29 23:45:34 +02:00
|
|
|
{{godot_path}}
|
2022-09-02 20:42:36 +02:00
|
|
|
|
|
|
|
edit: setup
|
2023-03-29 23:45:34 +02:00
|
|
|
{{godot_path}} {{godot_project}}
|