Commit 568d53e8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add hansoft-client

parent 3f7cdeb0
#!/bin/sh
PKGNAME=hansoft
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Hansoft client from the official site"
. $(dirname $0)/common.sh
# TODO
[ "$VERSION" = "*" ] && VERSION="11.1028"
VERSION="${VERSION/\./_}"
PKG="https://cache.hansoft.com/hansoft_${VERSION}_x64.deb"
epm install $PKG
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=hansoft
PRODUCTCUR=Hansoft
. $(dirname $0)/common.sh
add_bin_link_command $PRODUCT $PRODUCTDIR/$PRODUCTCUR
add_bin_link_command $PRODUCTCUR $PRODUCT
mkdir -p usr/share/applications
cat <<EOF >usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Actions=Newconnection;Logoutexitall;
Categories=Development;Office;
Exec=$PRODUCT -Url %u
Icon=$PRODUCT
MimeType=x-scheme-handler/hansoft;
Name=Hansoft Client
Terminal=false
Type=Application
Version=1.0
[Desktop Action Newconnection]
Exec=$PRODUCT -NoAuto
Name=New connection
X-Hansoft-TaskType=Command
[Desktop Action Logoutexitall]
Exec=$PRODUCT -ExitAll
Name=Log out & exit all
X-Hansoft-TaskType=Command
EOF
pack_file /usr/share/applications/$PRODUCT.desktop
# copied from ~.local/share/icons/se.hansoft.Exe-PMClient_7B6AC2CBB8795205B8E6DC09CB75B5E6.png
i=256
install_file ipfs://QmbYM3wS2qXtWbUg9mASMPoJmgfL6smny1m3J4PfuiDtJR /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