21 lines
		
	
	
	
		
			517 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			517 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
godot_project := "./godot-impl/project.godot"
 | 
						|
godot_url := "https://downloads.tuxfamily.org/godotengine/4.0/alpha8/Godot_v4.0-alpha8_linux.64.zip"
 | 
						|
godot_exe := "Godot_v4.0-alpha8_linux.64"
 | 
						|
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}} -O
 | 
						|
		unzip Godot*.zip
 | 
						|
		mv {{godot_exe}} {{godot_exe_dir}}
 | 
						|
		rm Godot*.zip
 | 
						|
	fi
 | 
						|
 | 
						|
#run:
 | 
						|
#	nixGL zig build run
 | 
						|
 | 
						|
edit: setup
 | 
						|
	{{godot_exe}} {{godot_project}}
 |