makedeb


tutanota-desktop-bin 227.240429.0-0


Official Tutanota email client

Click here to go back to the commit logs for tutanota-desktop-bin.

Commit:


Hash: a7382b0adbc416b3ecec6f86df5b0dca991e4678

Message: Fix .desktop file for correct path to launch binary

Diff


diff --git a/.SRCINFO b/.SRCINFO
index e4b0541..8943dcd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = tutanota-desktop-bin
 	pkgdesc = Official Tutanota email client
 	pkgver = 3.67.3
-	pkgrel = 3
+	pkgrel = 4
 	url = https://tutanota.com
 	arch = x86_64
 	license = GPL3
diff --git a/PKGBUILD b/PKGBUILD
index 527f2f7..9e12550 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
 # Co-Maintainer: Aaron J. Graves <linux@ajgraves.com>
 pkgname=tutanota-desktop-bin
 pkgver=3.67.3
-pkgrel=3
+pkgrel=4
 pkgdesc="Official Tutanota email client"
 arch=('x86_64')
 url="https://tutanota.com"
@@ -31,6 +31,9 @@ prepare() {
 	chmod +x "${pkgname%-bin}-$pkgver.AppImage"
 	./"${pkgname%-bin}-$pkgver.AppImage" --appimage-extract
 
+	# Correct path for .desktop file
+	sed -i 's|Exec=AppRun|Exec=/opt/tutanota-desktop/tutanota-desktop|g' "squashfs-root/${pkgname%-bin}.desktop"
+
 	# Disable auto-update
 	cd "$srcdir/squashfs-root/resources"
 	mkdir -p app-asar