I edited pkgbuild files from pamac. I cancelled yarn and package.json from sources and relevant shas (using #), and built the package again. I also added nodejs-nativefier and unzip to dependencies (I don't know if it is really needed but follow the bkmo's comment below) Now it works with beautiful dark theme. Thank you.
edit: but now there is no popup notification for messages. its a nativefier problem. after build, doing sed -i "s/const newNotify =.*/const newNotify = function (title, opt) {/" YOUR_DIRECTORY/resources/app/lib/preload.js
fixes it. https://github.com/jiahaog/nativefier/issues/956
(sorry I couldn't figrure out how to properly wrap code lines, but I just pasting the diff here:)
diff --git
a/PKGBUILD
b/PKGBUILD
index 3d87023..ee1da8a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,26 +9,26 @@ url="https://web.whatsapp.com"
license=("custom")
depends=("gtk3" "libxss" "nss")
optdepends=("libindicator-gtk3")
-makedepends=("imagemagick" "yarn")
+makedepends=("imagemagick" "nodejs-nativefier" "unzip")
source=(
"${pkgname}.png"
"${pkgname}.desktop"
"${pkgname}-inject.js"
- "package.json"
- "yarn.lock")
+# "package.json"
+# "yarn.lock")
sha256sums=(
"f79228902c35740ba202fc74494b3fa851911e466955298b231d7fcfebc63b37"
"12b72fd82fff48dc8c5a08f7bc070259b9929cf408bf6738133a08508e4d3d09"
"c7c201732ce2c2b55fc496280b23a493feb2d7c8fd7b008d7d416d3906529829"
- "6b214b951ff556fe2b87bb66bf8d3eb7b8ae7ed1dd0ceef0fa9d2c4ca86e0fff"
- "77c85afca5dcea2a041a9461ead9700067556f95dc3702602c074260c4d3f047"
+# "6b214b951ff556fe2b87bb66bf8d3eb7b8ae7ed1dd0ceef0fa9d2c4ca86e0fff"
+# "77c85afca5dcea2a041a9461ead9700067556f95dc3702602c074260c4d3f047"
)
iconsha256sum=${sha256sums[0]}
tmpdesktopfile="/tmp/whatsapp-nativefier-dark.desktop"
build() {
cd "${srcdir}"
- yarn && yarn nativefier \
+ nativefier \
--name "WhatsApp" \
--icon "${pkgname}.png" \
--width "800px" \
Pinned Comments
franciscocpg commented on 2020-07-08 14:24
bkmod
As I've mentioned in this comment it's time to deprecated this package then.
Now people can use https://aur.archlinux.org/packages/whatsapp-nativefier and just change the settings to use the dark theme.