I've made a little script for linux users who want to download the latest nightly versions but are lazy to do it manually. I'm not an expert or anything, so the script is not perfect in any way, i just wanted to make my life easier, and i thought 'why not share it?'.

What it does:
- checks the latest nightly version on the server
- downloads & extracts the latest nightly (in other words it updates OpenTTD) if needed
- stores the version number so later, when you run the script it can check if an update is required
Instructions:
- download openttd_update.txt
- open it with a text editor
- change the line 'directory="$HOME/openttd"' and 'architecture="amd64"' to match your settings and save the file as 'openttd_update' (without extension)
- make the file executable
Code: Select all
chmod +x openttd_update
Code: Select all
sudo mv openttd_update /usr/local/bin/
You need to have wget, and tar installed for the script to work.
Of course you can do whatever you want with the script, modify as your needs require. Have fun!

Changes:
v3:
- fixed the unpacking to work with tar.xz
- added version info to output
v2:
- curl not needed anymore
- added the option to set system architecture (thx Rubidium)
- the default openttd directory is '$HOME/openttd' (thx Alberth)