deltachat-desktop
deltachat-desktop copied to clipboard
Please provide an APT repository
Well, the title tells it all.
Otherwise, unless I'm missing something (?), it's a bit cumbersome to pull in new versions, as one has to parse the website, download the .deb and install it afterwards.
Maybe using OpenSUSE Build Service like Ungoogled Chromium repos could help a lot. You can maintain repos for different distros including APT one for Debian and Ubuntu as the example I gave...
Here is a -hacky but working- script to verify if installed version is the latest version available, and if not, download and install the .deb file.
May need to be updated to your need, and also if website template change.
#!/bin/bash
regex="(VERSION_DESKTOP = \")(.*)(\" %})"
url='https://raw.githubusercontent.com/deltachat/deltachat-pages/master/_includes/download-boxes.html'
dom="`wget -qO- $url`"
installedVersion="`dpkg-query --showformat='${Version}' --show deltachat-desktop`"
if [[ $dom =~ $regex ]]
then
latestVersion="${BASH_REMATCH[2]}"
echo "installed version: ${installedVersion}"
echo "latest version: ${latestVersion}"
if [[ ${installedVersion} != ${latestVersion} ]]
then
deburl="https://download.delta.chat/desktop/v${latestVersion}/deltachat-desktop_${latestVersion}_amd64.deb"
echo "will download: $deburl"
wget -O /tmp/deltachat.deb $deburl
sudo dpkg -i /tmp/deltachat.deb
else
echo "latest version already installed"
fi
else
echo "error fetching latest version"
fi
I added 1.34.1 here: http://packages.hermes.radio/ Plan to keep it to the latest version (amd64 only for now).