Skip to content

Commit

Permalink
Godot: update to official 4.3 release and add auto-updater
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Nov 6, 2024
1 parent cd86153 commit 32fb784
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 62 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/updates/Godot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

version=$(get_release godotengine/godot)
armhf_url=https://github.com/godotengine/godot/releases/download/${version}/Godot_v${version}_linux.arm32.zip
arm64_url=https://github.com/godotengine/godot/releases/download/${version}/Godot_v${version}_linux.arm64.zip

source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
2 changes: 0 additions & 2 deletions apps/Godot/credits
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
Credits to Irtexo for putting it on Pi-Apps.
Credits to Hiulit for porting it to the Raspberry Pi.
Credits to Juan Linietsky and Ariel Manzur for creating Godot Engine.
10 changes: 5 additions & 5 deletions apps/Godot/description
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Open Source Game Engine that runs fine on the Raspberry Pi (for 2d games).
For the export instructions for Raspberry Pi, go to the website.
This software will only run on the Raspberry Pi 4/Raspberry Pi 400.
GLES2 projects are recommended.
Your free, open‑source game engine.
Develop your 2D & 3D games, cross-platform projects, or even XR ideas!

Godot 4.X requires Vulkan 1.0, OpenGL 3.3, or OpenGLES 3.0 compatible hardware (eg: Pi4 and newer)
To run from GUI: Menu -> Programming -> Godot
To run in a terminal: ~/Godot/godot_*-stable_rpi4_editor*
To run in a terminal: godot
28 changes: 28 additions & 0 deletions apps/Godot/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
version=4.3-stable

case "$arch" in
"64") wget -O /tmp/godot.zip https://github.com/godotengine/godot/releases/download/${version}/Godot_v${version}_linux.arm64.zip || exit 1 ;;
"32") wget -O /tmp/godot.zip https://github.com/godotengine/godot/releases/download/${version}/Godot_v${version}_linux.arm32.zip || exit 1 ;;
*) error "Failed to detect OS CPU architecture! Something is very wrong." ;;
esac

sudo rm -rf /opt/godot-${version} /usr/local/bin/godot /usr/local/share/applications/godot-engine.desktop
sudo unzip /tmp/godot.zip -d /opt/godot-${version} || error "Failed to extract godot to /opt directory"
rm -f /tmp/godot.zip

case "$arch" in
"64") sudo ln -s /opt/godot-${version}/Godot_v${version}_linux.arm64 /usr/local/bin/godot || error "Failed to create godot symlink" ;;
"32") sudo ln -s /opt/godot-${version}/Godot_v${version}_linux.arm32 /usr/local/bin/godot || error "Failed to create godot symlink" ;;
*) error "Failed to detect OS CPU architecture! Something is very wrong." ;;
esac

echo "[Desktop Entry]
Name=Godot Engine
Comment=Your free, open‑source game engine.
Exec=/usr/local/bin/godot
Icon=$(dirname $0)/icon-64.png
Terminal=false
Type=Application
Categories=Development;
StartupNotify=true" | sudo tee /usr/local/share/applications/godot-engine.desktop > /dev/null
23 changes: 0 additions & 23 deletions apps/Godot/install-32

This file was deleted.

26 changes: 0 additions & 26 deletions apps/Godot/install-64

This file was deleted.

5 changes: 1 addition & 4 deletions apps/Godot/uninstall
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/bin/bash
rm -f ~/.local/share/applications/godotengine.desktop
rm -f ~/.local/share/applications/godot-engine.desktop
rm -rf ~/Godot

exit 0
sudo rm -rf /usr/local/share/applications/godot-engine.desktop /opt/godot-*-stable /usr/local/bin/godot
2 changes: 1 addition & 1 deletion apps/Godot/website
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://github.com/hiulit/Unofficial-Godot-Engine-Raspberry-Pi
https://godotengine.org/
1 change: 0 additions & 1 deletion etc/category-overrides-non-raspberry
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ CommanderPi|hidden
Downgrade Chromium|hidden
Flow|hidden
Gnome Software|Tools
Godot|hidden
Lightpad|hidden
Mac OS Theme|hidden
PiGro|hidden
Expand Down

0 comments on commit 32fb784

Please sign in to comment.