This script will download the Joplin source and package it into a DEB file. The DEB file should be installable on relatively modern Debian/Ubuntu like OS'. Tested on Debian 11, your mileage may vary.
Requirements:
Docker installed
apt-get install docker.io
sudo gpasswd -a $USER docker
Usage:
./joplin-deb.sh joplin-version
Example:
./joplin-deb.sh 2.5.12
If the build is successful, it will create a DEB file in the current user's Downloads folder.
Install it with:
sudo apt install ~/Downloads/joplin-desktop_*.deb