Package Details: zeit-now-bin 15.8.7-1

Git Clone URL: https://aur.archlinux.org/zeit-now-bin.git (read-only, click to copy)
Package Base: zeit-now-bin
Description: Realtime Global Deployments by Zeit, pre-built binary (outdated)
Upstream URL: https://zeit.co/now
Licenses: Apache
Conflicts: nodejs-now
Provides: zeit-now
Submitter: marsoft
Maintainer: marsoft
Last Packager: marsoft
Votes: 3
Popularity: 0.000000
First Submitted: 2018-04-07 23:46 (UTC)
Last Updated: 2019-08-12 21:08 (UTC)

Latest Comments

marsoft commented on 2019-08-12 21:09 (UTC)

Zeit stopped shipping pre-build binary packages for now, so this package is now outdated. For those who need it I am changing this package to a fixed version 15.8.7 which is the latest version with binary package available.

Please consider migrating to nodejs-now.

marsoft commented on 2019-03-22 23:24 (UTC) (edited on 2019-03-22 23:24 (UTC) by marsoft)

Thanks @bryanjhv, I updated the code to use JSON API. But I decided to not depend on jq, just used grep+tr. It is not very clean but I hope we don't have to expect " character in the tag.

mischka commented on 2019-03-22 15:24 (UTC)

In case anyone is as careless as I am, I imagined this was the now desktop application, which auto-updates its cli version.

It is not, and this package needs to be reinstalled to actually update the cli, which is unfortunately less convenient than installing/updating manually from npm in my opinion.

bryanjhv commented on 2019-03-20 04:37 (UTC)

Hi! I like your package, just what I needed. Looking at PKGBUILD, I notice source is an HTML page and you do hackery to get info. GitHub provides a better way to fetch that via its API, giving JSON parseable output. I have some recommendations:

  1. makedepend on jq for parsing JSON output
  2. source to <https://api.github.com/repos/zeit/now-cli/releases/latest>
  3. get pkgver() by cat latest | jq -r '.tag_name'
  4. get .gz by cat latest | jq -r '.assets[]|select(.name=="now-linux.gz")|.browser_download_url'

Let me know if that helped.

marsoft commented on 2018-08-30 16:06 (UTC)

Fixed, thanks @jonnystoten. My bad.

jonnystoten commented on 2018-08-30 13:17 (UTC)

This package is broken for me. Looks like the binary now has the version number in the name. This diff fixes the build on my machine:

diff --git a/PKGBUILD b/PKGBUILD
index 0fddbf9..46db947 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -31,9 +31,9 @@ md5sums=('791963aabd72437c7d2af1df817e7966')
 validpgpkeys=()

 build() {
-       chmod +x now-linux
+       chmod +x now-linux-${pkgver}
 }

 package() {
-       install -D now-linux "${pkgdir}/usr/bin/now"
+       install -D now-linux-${pkgver} "${pkgdir}/usr/bin/now"
 }