Upgrade the godot version

This commit is contained in:
Manuel Thalmann 2023-03-16 18:43:35 +01:00
parent d523f08e8c
commit 76fda82c89

View file

@ -13,17 +13,17 @@ else
rm -rf "$destination";
fi
wget https://github.com/godotengine/godot/releases/download/3.5.1-stable/Godot_v3.5.1-stable_mono_x11_64.zip -O "$archiveName";
wget https://github.com/godotengine/godot/releases/download/4.0-stable/Godot_v4.0-stable_mono_linux_x86_64.zip -O "$archiveName";
unzip "$archiveName" -d "$tempDir";
mkdir -p "$destination";
mv "$tempDir"/*/* "$destination";
wget https://github.com/godotengine/godot/raw/3.5.1-stable/icon.svg -O "$destination/icon.svg";
wget https://github.com/godotengine/godot/raw/4.0-stable/icon.svg -O "$destination/icon.svg";
rm -rf "$tempDir";
rm -f "$archiveName";
exeFile="$(find "$destination" -maxdepth 1 -perm -111 -type f)";
ln -s "$exeFile" /usr/local/bin/godot;
ln -fs "$exeFile" /usr/local/bin/godot;
{
echo "[Desktop Entry]";