makedeb


tutanota-desktop-bin 220.240411.0-0


Official Tutanota email client

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

Commit:


Hash: d83c89e363d93b45f2eaf9ea3d10d97e65ce7584

Message: actually disable auto-update

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 7f0d16e..bbcf561 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,11 @@
 pkgbase = tutanota-desktop-bin
 	pkgdesc = Official Tutanota email client
 	pkgver = 3.67.3
-	pkgrel = 1
+	pkgrel = 2
 	url = https://tutanota.com
 	arch = x86_64
 	license = GPL3
+	makedepends = asar
 	depends = nss
 	depends = libxss
 	depends = libxtst
diff --git a/PKGBUILD b/PKGBUILD
index 9ca0578..e8a79f1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,13 @@
 # Co-Maintainer: Aaron J. Graves <linux@ajgraves.com>
 pkgname=tutanota-desktop-bin
 pkgver=3.67.3
-pkgrel=1
+pkgrel=2
 pkgdesc="Official Tutanota email client"
 arch=('x86_64')
 url="https://tutanota.com"
 license=('GPL3')
 depends=('nss' 'libxss' 'libxtst' 'libappindicator-gtk3' 'libnotify')
+makedepends=('asar')
 optdepends=('zenity: for dialogs'
             'kdialog: for dialogs'
             'xdialog: for dialogs')
@@ -37,8 +38,14 @@ prepare() {
 		"squashfs-root/${pkgname%-bin}.desktop"
 
 	# Disable auto-update
-	sed -i 's|publishAutoUpdate: true|publishAutoUpdate: false|g' \
-		squashfs-root/resources/app-update.yml
+	cd "$srcdir/squashfs-root/resources"
+	mkdir -p app-asar
+	asar extract app.asar app-asar
+	rm app.asar
+	sed -i 's|"enableAutoUpdate": true|"enableAutoUpdate": false|g' \
+		app-asar/package.json
+	asar pack app-asar app.asar
+	rm -rf app-asar
 }
 
 package() {