deltachat-desktop icon indicating copy to clipboard operation
deltachat-desktop copied to clipboard

Please provide an APT repository

Open geor-g opened this issue 4 years ago • 3 comments

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.

geor-g avatar Jul 01 '20 11:07 geor-g

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...

EchedelleLR avatar Jul 08 '20 08:07 EchedelleLR

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

franck-x avatar Nov 09 '20 18:11 franck-x

I added 1.34.1 here: http://packages.hermes.radio/ Plan to keep it to the latest version (amd64 only for now).

rafael2k avatar Jan 03 '23 00:01 rafael2k