This script automates the installation and updating of Godot Engine (with Mono support) on Linux. It checks for the latest stable version of Godot, downloads it, installs it to /opt/godot
, and sets it up for easy access. It also includes an optional .desktop
file for creating a desktop shortcut and the automatic updating trough a service file.
- Automatically installs the latest stable version of Godot with Mono support.
- Supports both first-time installation and updates.
- Optionally adds Godot to your system's PATH.
- Creates a desktop shortcut for easy access.
- Automatically downloads and updates Godot.
- Linux-based system (Ubuntu, Debian, Fedora, etc.).
curl
,unzip
, andgrep
tools should be installed.- Write access to
/opt/godot
and$HOME/.local/share/
.
- Clone this repository or download the script file.
- Make the script executable:
chmod +x godot_updater.sh
-
To install Godot, simply run the script:
./godot_updater.sh
-
The script will:
- Download the latest stable version of Godot (Mono version).
- Extract it to
/opt/godot
. - Set the correct file permissions.
- Add Godot to your system's PATH if it's not already there.
- Download the Godot icon and install it in the
/opt/godot
folder. - Optionally create a desktop shortcut.
If you'd like to store the script in a more permanent location, you can move it to ~/.local/share/bin
for easier access.
-
Move the script:
mv godot_updater.sh ~/.local/share/bin/godot-updater.sh
-
Open Crontab:
crontab -e
-
Add this line to your Crontab:
@reboot sudo /home/youruser/.local/share/bin/godot-updater.sh