Commit c6387a43 authored by Иван Мажукин's avatar Иван Мажукин Committed by Vitaly Lipatov

epm play: add yandex-telemost (eterbug #17210)

parent a02d097b
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
VERSION="$3"
. $(dirname $0)/common.sh
PKGNAME=$PRODUCT-$VERSION.tar
mkdir -p opt/eepm-wine/$PRODUCT/
cat <<EOF >opt/eepm-wine/$PRODUCT/run.sh
#!/bin/sh
INSTALLER="/opt/eepm-wine/yandex-telemost/TelemostSetup.exe"
WINE_PROG_PATH=\$(wine cmd /c echo %appdata% | tr -d '\r')
NORMAL_PATH=\$(winepath -u "\$WINE_PROG_PATH\Yandex\YandexTelemost")
INSTALLED_VER=\$(ls "\$NORMAL_PATH")
RUNFILE="\$NORMAL_PATH/\$INSTALLED_VER/YandexTelemost.exe"
URUNFILE="\$(winepath -u "\$RUNFILE")"
if [ ! -f "\$URUNFILE" ] ; then
exec wine "\$INSTALLER"
fi
exec wine "\$RUNFILE" "\$@"
EOF
chmod 755 opt/eepm-wine/$PRODUCT/run.sh
cp $TAR opt/eepm-wine/$PRODUCT/
erc pack $PKGNAME opt/eepm-wine
return_tar $PKGNAME
#!/bin/sh
PKGNAME=yandex-telemost
SUPPORTEDARCHES="x86_64"
VERSION="1.0.0"
DESCRIPTION='Yandex telemost from the official site'
URL="https://www.commfort.com/ru/article-commfort-linux.shtml"
. $(dirname $0)/common.sh
warn_version_is_not_supported
PKGURL="https://telemost.yandex.ru/download-desktop"
install_pack_pkgurl $VERSION
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=yandex-telemost
PRODUCTDIR=/opt/eepm-wine/$PRODUCT
. $(dirname $0)/common.sh
add_requires '/usr/bin/wine'
add_bin_link_command $PRODUCT $PRODUCTDIR/run.sh
cat <<EOF | create_file /usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Name=Yandex Telemost
Exec=$PRODUCT %F
Type=Application
StartupNotify=true
Icon=$PRODUCT
StartupWMClass=YandexTelemost.exe
Categories=Wine;Chat;Network;InstantMessaging;
EOF
# copied from unpacked exe file: Telemost.exe
i=256
install_file ipfs://QmXkZQuL8CrJDvNSSAGk7uYro12zkaaRuddCrxsK5EPXHu /usr/share/icons/hicolor/${i}x${i}/apps/$PRODUCT.png
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