Package Details: google-calendar-nativefier 2021.06.30-2

Git Clone URL: https://aur.archlinux.org/google-calendar-nativefier.git (read-only, click to copy)
Package Base: google-calendar-nativefier
Description: Google Calendar in shared Electron runtime
Upstream URL: https://calendar.google.com
Licenses: MIT
Submitter: akaessens
Maintainer: alecmev
Last Packager: alecmev
Votes: 5
Popularity: 0.57
First Submitted: 2019-05-21 15:06
Last Updated: 2021-08-02 12:57

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

alecmev commented on 2021-02-19 14:42

Please, consider bumping the pkgrel every 59 days, because otherwise every user of this package needs to rebuild it manually, as to avoid the old build warning, which starts coming up for builds which are 60+ days old. The warning can be disabled, but this is a good practice regardless.

akaessens commented on 2020-04-23 18:03

Hello, there was a nativefier update today that probably broke the name scheme.

Quickest fix is restoring the previous version of nodejs-nativefier. I'll update this package later to match the nativefier update

EDIT: Hello, i could build the PKGBUILD file just fine. Which AUR helper did you use? Can you post the complete build log to pastebin or similar?

EDIT2: Try again with the new package

llabusch93 commented on 2020-04-23 17:44

Hello,

I get the following error while building:

cp: cannot stat 'google-calendar-linux-*': No such file or directory ==> ERROR: A failure occurred in package(). Aborting...

Any quick fix for this? :)

Cheerio!

akaessens commented on 2020-02-01 10:02

Updated the application:

changes:

  • fixed build process for new nativefier version

  • fixed google login by using a firefox user agent

  • use electron 7.1.11 instead of the default nativefier 5.x version to fix re-login on every restart

The Google login process with electron is a little tricky, sometimes it gives "cookies disabled" errors, then just try again...

akaessens commented on 2019-06-19 19:23

The below diff fixes directory permissions issues and tidies things a little (e.g. adding a leading _ to the local $instname variable).

Hello, thanks for this, I patched the PKGBUILD with your changes.

jonathon commented on 2019-06-19 18:50

The below diff fixes directory permissions issues and tidies things a little (e.g. adding a leading _ to the local $instname variable).

diff --git a/PKGBUILD b/PKGBUILD
index 2a2cfaa..0f7549a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,38 +1,34 @@
-pkgname="google-calendar-nativefier"
-pkgver="0.5"
-pkgrel="1"
-pkgdesc="The Google Calendar app helps you spend less time managing your schedule and more time enjoying it."
-arch=("x86_64")
-license=("MIT")
-url="https://calendar.google.com/"
-source=("${pkgname}.png" "${pkgname}.desktop")
-makedepends=("nodejs" "npm" "nodejs-nativefier")
-sha256sums=("SKIP" "SKIP")
-
-instname="google-calendar"
+pkgname=google-calendar-nativefier
+pkgver=0.5
+pkgrel=1
+pkgdesc="Electron wrapper for the Google Calendar web application"
+arch=(x86_64)
+license=(MIT)
+url=https://calendar.google.com
+source=($pkgname.png
+        $pkgname.desktop)
+makedepends=(nodejs nodejs-nativefier npm)
+sha256sums=('f1bb8a24f4d009a4ae31a22bedcc9c54224542288a33cd301fa1d1348cbbac09'
+            '05512fbf7028c19cb766ce7c3dff05975670cc2a4bc187928504723b3fee83d9')
+
+_instname=google-calendar

 build() {
-    cd "${srcdir}"
-
     nativefier "https://calendar.google.com/" \
-      --icon "${pkgname}.png" \
+      --icon $pkgname.png \
       --maximize \
       --internal-urls "(accounts|calendar)\.google" \
       --name "Google Calendar"
 }

 package() {
-  install -dm644 "$pkgdir/opt/"
-  install -dm644 "$pkgdir/usr/bin"
-  install -dm644 "$pkgdir/usr/share/pixmaps"
-  install -dm644 "$pkgdir/usr/share/applications"
-
-  install -m644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$instname.desktop"
-  cp -rL "$srcdir/$instname-linux-"* "$pkgdir/opt/$pkgname"
+    install -d "$pkgdir"/opt "$pkgdir"/usr/{bin,share/pixmaps}
+    install -Dm644 $pkgname.desktop "$pkgdir"/usr/share/applications/$_instname.desktop

-  ln -sf "/opt/$pkgname/$instname" "$pkgdir/usr/bin/$instname"
-  ln -sf "/opt/$pkgname/resources/app/icon.png" "$pkgdir/usr/share/pixmaps/$instname.png"
+    cp -rL $_instname-linux-* "$pkgdir"/opt/$pkgname
+    ln -sf /opt/$pkgname/$_instname "$pkgdir"/usr/bin/$_instname
+    ln -sf /opt/$pkgname/resources/app/icon.png "$pkgdir"/usr/share/pixmaps/$_instname.png

-  chmod 777 "$pkgdir/opt/$pkgname/resources/app/nativefier.json"
+    chmod 666 "$pkgdir"/opt/$pkgname/resources/app/nativefier.json
 }

akaessens commented on 2019-06-19 17:46

great, thanks for your testing as well! have a nice day :)

es20490446e commented on 2019-06-19 17:44

All seems to be working perfect now. Many thanks for your help ;)

akaessens commented on 2019-06-19 17:29

https://youtu.be/9A4QjZ6fy1E

Thanks again, this was a problem of the --internal-urls flag. I updated that to open login urls internally and tested by logging out & back in.

Other links (e.g. maps.google for appointment locations) will be opened externally.

es20490446e commented on 2019-06-19 16:57

https://youtu.be/9A4QjZ6fy1E