add godot4 from nixpkgs
This commit is contained in:
parent
64ba67156e
commit
513710ec84
13
justfile
13
justfile
|
@ -1,14 +1,15 @@
|
||||||
godot_project := "./project.godot"
|
godot_project := "./project.godot"
|
||||||
godot_url := "https://downloads.tuxfamily.org/godotengine/4.0/alpha15/Godot_v4.0-alpha15_linux.x86_64.zip"
|
godot_version := "4.0.1-stable"
|
||||||
godot_exe := "Godot_v4.0-alpha15_linux.x86_64"
|
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_exe_dir := "~/bin"
|
||||||
godot_path := godot_exe_dir + "/" + godot_exe
|
godot_path := godot_exe_dir / godot_exe
|
||||||
|
|
||||||
setup:
|
setup:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
if [ ! -e {{godot_path}} ]; then
|
if [ ! -e {{godot_path}} ]; then
|
||||||
curl {{godot_url}} -O
|
curl {{godot_url}} -LO
|
||||||
unzip Godot*.zip
|
unzip Godot*.zip
|
||||||
mkdir -p {{godot_exe_dir}}
|
mkdir -p {{godot_exe_dir}}
|
||||||
mv {{godot_exe}} {{godot_exe_dir}}
|
mv {{godot_exe}} {{godot_exe_dir}}
|
||||||
|
@ -19,7 +20,7 @@ setup:
|
||||||
# nixGL zig build run
|
# nixGL zig build run
|
||||||
|
|
||||||
godot: setup
|
godot: setup
|
||||||
{{godot_exe}}
|
{{godot_path}}
|
||||||
|
|
||||||
edit: setup
|
edit: setup
|
||||||
{{godot_exe}} {{godot_project}}
|
{{godot_path}} {{godot_project}}
|
||||||
|
|
|
@ -12,7 +12,7 @@ config_version=5
|
||||||
|
|
||||||
config/name="Space Explo"
|
config/name="Space Explo"
|
||||||
run/main_scene="res://level.tscn"
|
run/main_scene="res://level.tscn"
|
||||||
config/features=PackedStringArray("4.0", "Vulkan Clustered")
|
config/features=PackedStringArray("4.0")
|
||||||
config/icon="res://icon.svg"
|
config/icon="res://icon.svg"
|
||||||
|
|
||||||
[display]
|
[display]
|
||||||
|
|
Loading…
Reference in a new issue