space-explo/justfile
2023-03-30 00:15:06 +02:00

27 lines
621 B
Makefile

godot_project := "./project.godot"
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"
godot_exe_dir := "~/bin"
godot_path := godot_exe_dir / godot_exe
setup:
#!/usr/bin/env bash
set -euo pipefail
if [ ! -e {{godot_path}} ]; then
curl {{godot_url}} -LO
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
{{godot_path}}
edit: setup
{{godot_path}} {{godot_project}}