Commit 3d8af9cf authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play vdhcoapp: add support for 2.x version

parent d8bb0205
#!/bin/sh
PKGNAME=vdhcoapp
SUPPORTEDARCHES="x86_64 aarch64"
VERSION="$2"
DESCRIPTION="Video DownloadHelper Companion App 2"
URL="https://www.downloadhelper.net/install-coapp-v2"
. $(dirname $0)/common.sh
arch="$(epm print info -a)"
mask="$PKGNAME-${VERSION}-linux-$arch.deb"
PKGURL=$(eget --list --latest https://github.com/mi-g/vdhcoapp/releases/ $mask) || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm install $repack "$PKGURL"
......@@ -10,6 +10,21 @@ PREINSTALL_PACKAGES="ffmpeg ffplay ffprobe xdg-utils"
set_autoreq "yes"
if [ ! -f ./opt/net.downloadhelper.coapp/bin/xdg-open ] ; then
PRODUCTDIR=/opt/vdhcoapp
# use ffmpeg from the system
for i in ffplay ffmpeg ffprobe ; do
ln -sf /usr/bin/$i ./$PRODUCTDIR/$i
pack_file $PRODUCTDIR/$i
done
# use xdg-open from the system
rm -v .$PRODUCTDIR/xdg-open
ln -s /usr/bin/xdg-open .$PRODUCTDIR/xdg-open
exit
fi
# fix libdir
install_file /usr/lib/mozilla/native-messaging-hosts/net.downloadhelper.coapp.json /usr/lib64/mozilla/native-messaging-hosts/net.downloadhelper.coapp.json
remove_dir /usr/lib
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment