When I attempt to update, makepkg
attempts to download a tarball from dropbox (https://www.dropbox.com/s/azeqhinhdwurn8s/WhatsApp-v0.5.0-linux-x64.tar.gz) - which fails.
Search Criteria
Package Details: whatsapp-nativefier 2.2337.7-1
Package Actions
- View PKGBUILD / View Changes
- Download snapshot
- Search wiki
- Flag package out-of-date
- 1 pending request
- Submit Request
Git Clone URL: | https://aur.archlinux.org/whatsapp-nativefier.git (read-only, click to copy) |
---|---|
Package Base: | whatsapp-nativefier |
Description: | WhatsApp desktop built with nativefier (electron) |
Upstream URL: | https://web.whatsapp.com |
Licenses: | custom |
Submitter: | frealgagu |
Maintainer: | frealgagu |
Last Packager: | frealgagu |
Votes: | 135 |
Popularity: | 0.90 |
First Submitted: | 2018-12-14 22:30 (UTC) |
Last Updated: | 2023-09-08 19:25 (UTC) |
Dependencies (7)
- gtk3 (gtk3-ubuntuAUR, gtk3-no_deadkeys_underlineAUR, gtk3-patched-filechooser-icon-viewAUR, gtk3-classic-xfceAUR, gtk3-classicAUR)
- libxss
- nss (nss-hgAUR)
- imagemagick (imagemagick-gitAUR, imagemagick-fullAUR, imagemagick-full-gitAUR) (make)
- nodejs-nativefierAUR (make)
- unzip (unzip-natspecAUR, unzip-zstdAUR) (make)
- libindicator-gtk3 (optional)
Required by (5)
Sources (3)
singing_kettle commented on 2018-07-02 19:04 (UTC)
aytekinar commented on 2018-06-05 10:05 (UTC)
I have cleaned the PKGBUILD
a bit, if you want. I have kept only the sha256sums, removed dependency on another AUR package (nativefier
), and replaced it with npm
. Below is the patch:
diff --git a/PKGBUILD b/PKGBUILD
index 7fe574e..f04ff57 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,51 +6,43 @@ arch=('i686' 'x86_64')
url="https://web.whatsapp.com"
license=('unknown')
depends=('alsa-lib' 'gconf' 'gtk2' 'libxss' 'libxtst' 'nss')
-makedepends=('nodejs-nativefier')
+makedepends=('npm')
provides=('whatsapp-desktop')
source=('whatsapp-web-desktop.png'
'whatsapp-web-desktop.desktop'
- 'whatsapp-web-desktop.sh')
+ 'whatsapp-web-desktop.sh')
build() {
cd $srcdir
- nativefier web.whatsapp.com \
- --name "whats-app" \
- --disable-context-menu \
- --disable-dev-tools \
- --width 700px \
- --height 700px \
- -i "../$pkgname.png"
+ npm install nativefier
+ ./node_modules/.bin/nativefier web.whatsapp.com \
+ --name "whats-app" \
+ --disable-context-menu \
+ --disable-dev-tools \
+ --width 700px \
+ --height 700px \
+ -i "../$pkgname.png"
- rm -rf whats-app
- mv whats-app-* WhatsApp
- mv WhatsApp/whats-app WhatsApp/WhatsApp
+ rm -rf whats-app
+ mv whats-app-* WhatsApp
+ mv WhatsApp/whats-app WhatsApp/WhatsApp
}
package() {
- install -dm755 "$pkgdir/opt/whatsapp-web"
- install -dm755 "$pkgdir/usr/bin/"
- install -dm755 "$pkgdir/usr/share/pixmaps/"
- install -dm755 "$pkgdir/usr/share/applications/"
+ install -dm755 "$pkgdir/opt/whatsapp-web"
+ install -dm755 "$pkgdir/usr/bin/"
+ install -dm755 "$pkgdir/usr/share/pixmaps/"
+ install -dm755 "$pkgdir/usr/share/applications/"
- cp -R "$srcdir/WhatsApp/." "$pkgdir/opt/whatsapp-web/"
- chmod 755 "$pkgdir/opt/whatsapp-web/resources/app"
+ cp -R "$srcdir/WhatsApp/." "$pkgdir/opt/whatsapp-web/"
+ chmod 755 "$pkgdir/opt/whatsapp-web/resources/app"
- install -Dm755 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
- install -Dm755 "$srcdir/$pkgname.png" "$pkgdir/usr/share/pixmaps/whatsapp.png"
- install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
+ install -Dm755 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
+ install -Dm755 "$srcdir/$pkgname.png" "$pkgdir/usr/share/pixmaps/whatsapp.png"
+ install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
}
-md5sums=('30ddc7f3e4c4acf46e698909fc8c37b6'
- 'b5b89ccd54a6e2ee7c8dfbaa21b223d5'
- '78a9b5d6119cc5ccbc80df46c0c9d5ef')
-sha1sums=('47a4d26ed68125e77e7519c2a6c484d98b058ee2'
- 'eca6674f60349b59870ec098a7463258bc49ce8d'
- 'bff4262d17d6d13e7c5a0bea87960ebea3fc6189')
sha256sums=('bf127917f50f8a4e4c9f217c7227cc0fe07783b186ae15d747f950f67ed9180d'
'd08d57702dfcab2d3b37d7f3ef9a59955fe2432063fe5b6d91df999af609754b'
'a3cb0c1c2f6f9fd574cdfc7e08814c3f7908bc4543ace8f3427d4636ddba9c29')
-sha512sums=('8e0c4742be68c7122eeb43c3b7318ceb3198f1a493798af51e27d11e92dea8f9dacf3a7ca39223da9ec017a6f476f3066cf62df7e2c3baacf72fb13d827c3706'
- 'a1c392b8a7a7045c3f955384be1eefb0ce51d781b656223ccbaffaeb939ba1fbebf4c4085fbc03f52bc24743208455cedc8f4e5b1d10e3885c150082bb585191'
- '7c39adb302df5fbf5a222fd2ad623d348db0c6240069215f11547e072b96e65e363db5bd93d5a25075eab97c15567e89a3825d9b73fe9425e6176032e049c8a0')
I have tested on my laptop with makepkg --syncdeps --install --clean --cleanbuild --rmdeps
and it is working properly. Please feel free to introduce the changes.
jfernandz commented on 2018-05-12 05:48 (UTC) (edited on 2018-05-12 06:01 (UTC) by jfernandz)
Your whatsapp package is not able to show the tray icon using this gnome extension
https://extensions.gnome.org/extension/615/appindicator-support/
Here the specific opened issue:
https://github.com/ubuntu/gnome-shell-extension-appindicator/issues/130
EDIT: Apparently this is not the package which I've got installed, I've got installed whatsapp-desktop, but is not availabe at the day ... anyone has got more info? I would swear I've upgraded this whatsapp-desktop package recently
https://aur.archlinux.org/pkgbase/whatsapp-desktop/?comments=all
EDIT2: Ok, here is the explanation: https://github.com/Enrico204/Whatsapp-Desktop
Im sorry.
EDIT3: In any case, ... would you consider the suggestion about add system tray icon support? Thank you :-)
Pinned Comments
matejdro commented on 2023-10-06 04:51 (UTC)
Warning to all existing users: Nativefier is now unmaintained (https://github.com/nativefier/nativefier/issues/1577)
frealgagu commented on 2020-12-05 22:39 (UTC)
I maintain the latest built package at:
https://github.com/frealgagu/archlinux.whatsapp-nativefier/releases/
saulocastelo commented on 2020-03-29 10:46 (UTC)
Hey guys,
I created the original fix.
And now I share another way to use whatsapp web on nativefier. No code injection required.
Pressing ctrl+shift+i (on Linux) and the Devtools window will open. Then click on Application -> Service Workers And check the option Bypass for network.
Now press ctrl+r to reload. And ctrl+shift+i to close the Devtools.
Whenever you open your whatsapp the problem will occur, but since the Bypass for network option has already been enabled, you only need to press ctrl+shift+i (open devtools), ctrl+r (reload), ctrl+shift+i (close devtools)
@frealgagu, thanks for your work. This package was in my list as one of required apps to be installed after install Arch. I saw your last update ( document.querySelector("a[href='https://support.google.com/chrome/answer/95414']") ), NICE/GREAT/GOOD!
Another way to do the same in 2 lines: document.querySelector("a[href='https://support.google.com/chrome/answer/95414']") && navigator.serviceWorker.getRegistration().then(r => r.unregister() && document.location.reload());