Rocket.Chat-Desktop: actually use electron19

This commit is contained in:
John 2022-07-12 23:49:43 +02:00
parent 22bf95cf35
commit 67acab04a8
2 changed files with 6 additions and 4 deletions

View file

@ -1,2 +0,0 @@
#!/bin/sh
exec electron13 /usr/lib/Rocket.Chat-Desktop.asar "$@"

View file

@ -1,7 +1,7 @@
# Template file for 'Rocket.Chat-Desktop' # Template file for 'Rocket.Chat-Desktop'
pkgname=Rocket.Chat-Desktop pkgname=Rocket.Chat-Desktop
version=3.8.7 version=3.8.7
revision=1 revision=2
_electron_ver=19 _electron_ver=19
wrksrc="Rocket.Chat.Electron-${version}" wrksrc="Rocket.Chat.Electron-${version}"
hostmakedepends="yarn nodejs python3 pkg-config app-builder" hostmakedepends="yarn nodejs python3 pkg-config app-builder"
@ -39,7 +39,11 @@ do_build() {
} }
do_install() { do_install() {
vinstall "${FILESDIR}/Rocket.Chat-Desktop.desktop" 644 usr/share/applications 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 vinstall build/icons/512x512.png 644 usr/share/icons/hicolor/512x512/apps Rocket.Chat-Desktop.png
vlicense LICENSE vlicense LICENSE
vinstall "dist/linux-unpacked/resources/app.asar" 644 /usr/lib Rocket.Chat-Desktop.asar vinstall "dist/linux-unpacked/resources/app.asar" 644 /usr/lib Rocket.Chat-Desktop.asar