From 67acab04a8fc6f4f22d528156c2fa16e03b52a3a Mon Sep 17 00:00:00 2001 From: John Date: Tue, 12 Jul 2022 23:49:43 +0200 Subject: [PATCH] Rocket.Chat-Desktop: actually use electron19 --- srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop | 2 -- srcpkgs/Rocket.Chat-Desktop/template | 8 ++++++-- 2 files changed, 6 insertions(+), 4 deletions(-) delete mode 100644 srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop diff --git a/srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop b/srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop deleted file mode 100644 index 214b977b598..00000000000 --- a/srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -exec electron13 /usr/lib/Rocket.Chat-Desktop.asar "$@" diff --git a/srcpkgs/Rocket.Chat-Desktop/template b/srcpkgs/Rocket.Chat-Desktop/template index 70e0bd7a7bc..1390686f95c 100644 --- a/srcpkgs/Rocket.Chat-Desktop/template +++ b/srcpkgs/Rocket.Chat-Desktop/template @@ -1,7 +1,7 @@ # Template file for 'Rocket.Chat-Desktop' pkgname=Rocket.Chat-Desktop version=3.8.7 -revision=1 +revision=2 _electron_ver=19 wrksrc="Rocket.Chat.Electron-${version}" hostmakedepends="yarn nodejs python3 pkg-config app-builder" @@ -39,7 +39,11 @@ do_build() { } do_install() { vinstall "${FILESDIR}/Rocket.Chat-Desktop.desktop" 644 usr/share/applications - vbin "$FILESDIR/Rocket.Chat-Desktop" + cat > Rocket.Chat-Desktop <<-EOF + #!/bin/sh + exec electron${_electron_ver} /usr/lib/Rocket.Chat-Desktop.asar "\$@" + EOF + vbin Rocket.Chat-Desktop vinstall build/icons/512x512.png 644 usr/share/icons/hicolor/512x512/apps Rocket.Chat-Desktop.png vlicense LICENSE vinstall "dist/linux-unpacked/resources/app.asar" 644 /usr/lib Rocket.Chat-Desktop.asar