add godot4 from nixpkgs

main
Fabien Freling 2023-03-29 23:45:34 +02:00
parent 64ba67156e
commit 513710ec84
2 changed files with 8 additions and 7 deletions

View File

@ -1,14 +1,15 @@
godot_project := "./project.godot"
godot_url := "https://downloads.tuxfamily.org/godotengine/4.0/alpha15/Godot_v4.0-alpha15_linux.x86_64.zip"
godot_exe := "Godot_v4.0-alpha15_linux.x86_64"
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
godot_path := godot_exe_dir / godot_exe
setup:
#!/usr/bin/env bash
set -euo pipefail
if [ ! -e {{godot_path}} ]; then
curl {{godot_url}} -O
curl {{godot_url}} -LO
unzip Godot*.zip
mkdir -p {{godot_exe_dir}}
mv {{godot_exe}} {{godot_exe_dir}}
@ -19,7 +20,7 @@ setup:
# nixGL zig build run
godot: setup
{{godot_exe}}
{{godot_path}}
edit: setup
{{godot_exe}} {{godot_project}}
{{godot_path}} {{godot_project}}

View File

@ -12,7 +12,7 @@ config_version=5
config/name="Space Explo"
run/main_scene="res://level.tscn"
config/features=PackedStringArray("4.0", "Vulkan Clustered")
config/features=PackedStringArray("4.0")
config/icon="res://icon.svg"
[display]