summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrealgagu2020-07-08 14:48:50 -0500
committerfrealgagu2020-07-08 14:48:50 -0500
commit9287c6580f29cbef3894a16d4209beaab670b280 (patch)
tree05e1917e3d2428752230f1c14a4f3e010985a485
parentb6e767564eea1193aaefc5b153a9b37e0542b789 (diff)
downloadaur-9287c6580f29cbef3894a16d4209beaab670b280.tar.gz
Adding spellchecker option. Usign electron 9.0.2 as workaround to left click issue.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
2 files changed, 6 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9449ebc5139..e5258c384a6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = whatsapp-nativefier
pkgdesc = WhatsApp desktop built with nativefier (electron)
- pkgver = 0.4.2080
+ pkgver = 2.2027.10
pkgrel = 1
url = https://web.whatsapp.com
arch = armv7l
diff --git a/PKGBUILD b/PKGBUILD
index 59b8809280c..e80c070a2b5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Fredy GarcĂ­a <frealgagu at gmail dot com>
pkgname=whatsapp-nativefier
-pkgver=0.4.2080
+pkgver=2.2027.10
pkgrel=1
pkgdesc="WhatsApp desktop built with nativefier (electron)"
arch=("armv7l" "i686" "x86_64")
@@ -30,10 +30,12 @@ build() {
--width "800px" \
--height "600px" \
--inject "${pkgname}-inject.js" \
+ --browserwindow-options '{ "webPreferences": { "spellcheck": true } }' \
--verbose \
--single-instance \
--tray \
- "https://web.${pkgname%-nativefier}.com"
+ --electron-version 9.0.2 \
+ "${url}"
}
package() {
@@ -50,6 +52,6 @@ package() {
for _size in "192x192" "128x128" "96x96" "64x64" "48x48" "32x32" "24x24" "22x22" "20x20" "16x16" "8x8"
do
install -dm755 "${pkgdir}/usr/share/icons/hicolor/${_size}/apps"
- convert "${srcdir}/${pkgname}.png" -resize "${_size}" "${pkgdir}/usr/share/icons/hicolor/${_size}/apps/${pkgname}.png"
+ convert "${srcdir}/${pkgname}.png" -strip -resize "${_size}" "${pkgdir}/usr/share/icons/hicolor/${_size}/apps/${pkgname}.png"
done
}