switch to godot 4 (alpha)
This commit is contained in:
parent
db3848454d
commit
62c5adc267
56
flake.nix
56
flake.nix
|
@ -2,28 +2,40 @@
|
||||||
description = "Doggo flake";
|
description = "Doggo flake";
|
||||||
|
|
||||||
outputs = { self, nixpkgs }:
|
outputs = { self, nixpkgs }:
|
||||||
let pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
let
|
||||||
in {
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
# packages.x86_64-linux.hello = pkgs.hello;
|
|
||||||
# packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello;
|
|
||||||
# defaultPackage.x86_64-linux = self.packages.x86_64-linux.hello;
|
|
||||||
|
|
||||||
devShell.x86_64-linux = with pkgs;
|
# godot-alpha = (with pkgs; stdenv.mkDerivation {
|
||||||
mkShell {
|
# pname = "godot-alpha";
|
||||||
buildInputs = [
|
# version = "4.0.0-a8";
|
||||||
just
|
# src = fetchzip {
|
||||||
zig
|
# url = "https://downloads.tuxfamily.org/godotengine/4.0/alpha8/Godot_v4.0-alpha8_linux.64.zip";
|
||||||
godot
|
# hash = "sha512-qkUpt1reFgVDt5u9zLHYLoJAzC0D/YdtNpQhWLarpTW0e+Vzlqy7kna2plIeddybNsn+tS+QqTmYJExA7aT3zw==";
|
||||||
|
# };
|
||||||
xorg.libX11
|
# installPhase = ''
|
||||||
xorg.libXcursor
|
# mkdir -p $out/bin
|
||||||
xorg.libXi
|
# mv Godot_v4.0-alpha8_linux.64 $out/bin/godot-v4-alpha
|
||||||
xorg.libXext
|
# '';
|
||||||
xorg.libXrandr
|
# });
|
||||||
xorg.libXinerama
|
in {
|
||||||
libGL
|
|
||||||
libGLU
|
devShell.x86_64-linux = with pkgs;
|
||||||
];
|
mkShell {
|
||||||
};
|
buildInputs = [
|
||||||
|
just
|
||||||
|
# zig
|
||||||
|
# godot
|
||||||
|
# godot-alpha
|
||||||
|
#
|
||||||
|
# xorg.libX11
|
||||||
|
# xorg.libXcursor
|
||||||
|
# xorg.libXi
|
||||||
|
# xorg.libXext
|
||||||
|
# xorg.libXrandr
|
||||||
|
# xorg.libXinerama
|
||||||
|
# libGL
|
||||||
|
# libGLU
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
[gd_resource type="Environment" load_steps=2 format=2]
|
|
||||||
|
|
||||||
[sub_resource type="ProceduralSky" id=1]
|
|
||||||
|
|
||||||
[resource]
|
|
||||||
background_mode = 2
|
|
||||||
background_sky = SubResource( 1 )
|
|
Binary file not shown.
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.4 KiB |
|
@ -1,8 +1,9 @@
|
||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
|
uid="uid://dda5wstjh822x"
|
||||||
|
path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
|
@ -10,26 +11,24 @@ metadata={
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://icon.png"
|
source_file="res://icon.png"
|
||||||
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
|
dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
compress/bptc_ldr=0
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=true
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=true
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
|
|
@ -6,17 +6,10 @@
|
||||||
; [section] ; section goes between []
|
; [section] ; section goes between []
|
||||||
; param=value ; assign values to parameters
|
; param=value ; assign values to parameters
|
||||||
|
|
||||||
config_version=4
|
config_version=5
|
||||||
|
|
||||||
[application]
|
[application]
|
||||||
|
|
||||||
config/name="Doggo"
|
config/name="Doggo"
|
||||||
config/icon="res://icon.png"
|
config/icon="res://icon.png"
|
||||||
|
config/features=PackedStringArray("4.0", "Vulkan Clustered")
|
||||||
[physics]
|
|
||||||
|
|
||||||
common/enable_pause_aware_picking=true
|
|
||||||
|
|
||||||
[rendering]
|
|
||||||
|
|
||||||
environment/default_environment="res://default_env.tres"
|
|
||||||
|
|
22
justfile
22
justfile
|
@ -1,7 +1,21 @@
|
||||||
godot_project := "./godot-impl/project.godot"
|
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
|
||||||
|
|
||||||
run:
|
setup:
|
||||||
nixGL zig build run
|
#!/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
|
||||||
|
|
||||||
edit:
|
#run:
|
||||||
nixGL godot {{godot_project}}
|
# nixGL zig build run
|
||||||
|
|
||||||
|
edit: setup
|
||||||
|
{{godot_exe}} {{godot_project}}
|
||||||
|
|
Loading…
Reference in a new issue