Package Details: grayjay-bin 4-9

Git Clone URL: https://aur.archlinux.org/grayjay-bin.git (read-only, click to copy)
Package Base: grayjay-bin
Description: Grayjay Desktop - follow creators, not platforms (privacy- and freedom-respecting client for YouTube, Rumble, Twitch, Spotify etc)
Upstream URL: https://grayjay.app/desktop/
Licenses: Source First License 1.1
Conflicts: grayjay-git
Provides: grayjay
Submitter: nathanchere
Maintainer: nathanchere
Last Packager: nathanchere
Votes: 8
Popularity: 4.85
First Submitted: 2024-12-25 16:27 (UTC)
Last Updated: 2025-01-30 17:20 (UTC)

Pinned Comments

nathanchere commented on 2025-01-30 06:30 (UTC)

Sorry for the unreliable builds recently. I've spoken with Futo about the generic latestversion.zip downloads and have been advised about versioned links which they don't officially publish. Hopefully that should finally resolve the issue of this package breaking when a new release is published to the same download URL breaking checksums.

Latest Comments

1 2 Next › Last »

Kaiser2nd commented on 2025-01-30 20:34 (UTC)

Even with the new update this package seems to remain broken

:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating icon theme caches...
(3/3) Updating the desktop file MIME type cache...
❯ grayjay
zsh: correct 'grayjay' to 'Grayjay' [nyae]? n
Failure processing application bundle; possible file corruption.
Arithmetic overflow while reading bundle.
A fatal error occurred while processing application bundle

avnuj commented on 2025-01-30 10:02 (UTC) (edited on 2025-01-30 10:34 (UTC) by avnuj)

I can't install it:

==> Making package: grayjay-bin 5-2 (Do 30 Jan 2025 11:00:02 CET)
==> Retrieving sources...
  -> Found Grayjay.Desktop-linux-x64.zip
==> Validating source files with sha256sums...
    Grayjay.Desktop-linux-x64.zip ... FAILED
==> ERROR: One or more files did not pass the validity check!
error: failed to download sources for 'grayjay-bin-4-3': 
error: packages failed to build: grayjay-bin-4-3

After clearing the cache i get this now:

==> WARNING: Using existing $srcdir/ tree
==> Entering fakeroot environment...
==> Starting package()...
/home/<user>/.cache/paru/clone/grayjay-bin/PKGBUILD: line 23: cd: /home/<user>/.cache/paru/clone/grayjay-bin/src/grayjay/Grayjay.Desktop-linux-x64-v4: No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
error: failed to build 'grayjay-bin-4-3': 
error: packages failed to build: grayjay-bin-4-3

nathanchere commented on 2025-01-30 06:30 (UTC)

Sorry for the unreliable builds recently. I've spoken with Futo about the generic latestversion.zip downloads and have been advised about versioned links which they don't officially publish. Hopefully that should finally resolve the issue of this package breaking when a new release is published to the same download URL breaking checksums.

Cryen commented on 2025-01-29 19:12 (UTC) (edited on 2025-01-29 19:12 (UTC) by Cryen)

Same issue. No patch for now.

/home/<user>/.cache/paru/clone/grayjay-bin/PKGBUILD: line 23: cd: /home/<user>/.cache/paru/clone/grayjay-bin/src/grayjay/Grayjay.Desktop-linux-x64-v5: No such file or directory

I have checked manually and the folder that is actually being created is marked as v4.

n72 commented on 2025-01-28 19:50 (UTC)

I'm not sure where it would get that v5 in the path. The current zip has v4 in it. Can you show more of the error message? Also are you testing my patch, or talking about current PKGBUILD?

Btw for anyone testing, Grayjay stopped reading ~/Grayjay for whatever reason and is saving in ~/.local/share/grayjay, which would be wiped on subsequent updates...

erdnuesse commented on 2025-01-28 19:40 (UTC)

There seems to be an issue with the build on 5-2 maybe. my /home/<user>/.cache/yay/grayjay-bin/src/grayjay/Grayjay.Desktop-linux-x64-v5 folder does not exist when it tries to build. creating manually does not help, it gets cleaned after failure I think. Maybe someone can confirm it's not just me.

n72 commented on 2025-01-28 19:31 (UTC) (edited on 2025-01-28 19:32 (UTC) by n72)

Yea that is kinda problematic, and FUTO should address it, but in the mean time I've came up with this.
1. Skip all checksums as you suggested
2. Using find with regex to find Grayjay directory after unziping.
3. Because once /usr/bin/grayjay script has copied GJ to ~/.local/share, it will not update them, I added an if to check if AppVersion.json has changed.

diff --git a/.SRCINFO b/.SRCINFO
index 10be31d..f61ce8e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -19,6 +19,6 @@ pkgbase = grayjay-bin
        conflicts = grayjay-git
        options = !strip
        source = Grayjay.Desktop-linux-x64.zip::https://updater.grayjay.app/Apps/Grayjay.Desktop/Grayjay.Desktop-linux-x64.zip
-       sha256sums = 314e002552a413cd3f13d8a4abd44a20bf59de7a70982d8dd0f1f26ddfbe8d03
+       sha256sums = SKIP

 pkgname = grayjay-bin
diff --git a/PKGBUILD b/PKGBUILD
index b8fefd9..8fca997 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,7 +12,7 @@ conflicts=('grayjay-git')
 options=(!strip)
 _filename="Grayjay.Desktop-linux-x64.zip"
 source=("${_filename}::https://updater.grayjay.app/Apps/Grayjay.Desktop/${_filename}")
-sha256sums=('314e002552a413cd3f13d8a4abd44a20bf59de7a70982d8dd0f1f26ddfbe8d03')
+sha256sums=('SKIP')

 prepare() {
     mkdir -p "${srcdir}/grayjay"
@@ -20,7 +20,7 @@ prepare() {
 }

 package() {
-    cd "${srcdir}/grayjay/Grayjay.Desktop-linux-x64-v2"
+    cd $(find "${srcdir}/grayjay" -type d -name "Grayjay.Desktop-linux-x64-v*")

     # Create necessary directories
     install -dm755 "${pkgdir}/usr/share/grayjay"
@@ -41,6 +41,14 @@ if [ ! -d "$APP_DIR" ]; then
     chmod u+w -R "$APP_DIR"
 fi

+if [ "$(cat $APP_DIR/AppVersion.json)" != "$(cat /usr/share/grayjay/AppVersion.json)" ]; then
+    echo "User Grayjay copy AppVersion.json doesn't match system version, overwriting $APP_DIR with new version"
+    rm -rf "$APP_DIR"
+    mkdir -p "$APP_DIR"
+    cp -r /usr/share/grayjay/* "$APP_DIR/"
+    chmod u+w -R "$APP_DIR"
+fi
+
 exec sh -c "cd '$APP_DIR' && exec ./Grayjay \"\$@\"" -- "$@"
 EOF
     chmod 755 "${pkgdir}/usr/bin/grayjay"

nathanchere commented on 2025-01-28 18:30 (UTC)

The problem here with checksums is that Futo publishes each release to a generic 'latest' URL without anything to differentiate between versions. Short of mirroring the releases somewhere else with versioned file names, I'm not sure how to address this other than changing checksums to SKIP.

n72 commented on 2025-01-28 18:18 (UTC)

index b8fefd9..78c5315 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,7 +12,7 @@ conflicts=('grayjay-git')
 options=(!strip)
 _filename="Grayjay.Desktop-linux-x64.zip"
 source=("${_filename}::https://updater.grayjay.app/Apps/Grayjay.Desktop/${_filename}")
-sha256sums=('314e002552a413cd3f13d8a4abd44a20bf59de7a70982d8dd0f1f26ddfbe8d03')
+sha256sums=('1bfd2ec8eaa578fdbf77c037a901bc6cafaf97427edcfbf565c1e6acb4477e96')

 prepare() {
     mkdir -p "${srcdir}/grayjay"
@@ -20,7 +20,7 @@ prepare() {
 }

 package() {
-    cd "${srcdir}/grayjay/Grayjay.Desktop-linux-x64-v2"
+    cd "${srcdir}/grayjay/Grayjay.Desktop-linux-x64-v4"

     # Create necessary directories
     install -dm755 "${pkgdir}/usr/share/grayjay"

Cryen commented on 2025-01-23 21:01 (UTC)

Checksum fail


==> Validating source files with sha256sums...
    Grayjay.Desktop-linux-x64.zip ... FAILED
==> ERROR: One or more files did not pass the validity check!
error: failed to download sources for 'grayjay-bin-5-1': 
error: packages failed to build: grayjay-bin-5-1