You need to sign in or sign up before continuing.
commfort-client.sh 695 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"

SPEC="$2"

PRODUCT=commfort-client
PRODUCTDIR=/opt/eepm-wine/$PRODUCT

. $(dirname $0)/common.sh

add_requires '/usr/bin/wine'

add_bin_link_command $PRODUCT $PRODUCTDIR/run.sh

Vitaly Lipatov's avatar
Vitaly Lipatov committed
16
cat <<EOF | create_file /usr/share/applications/$PRODUCT.desktop
17 18 19 20 21 22 23 24 25 26 27 28 29
[Desktop Entry]
Name=CommFort
Exec=$PRODUCT %F
Type=Application
StartupNotify=true
Icon=$PRODUCT
StartupWMClass=commfort.exe
Categories=Wine;Chat;Network;InstantMessaging;
EOF

# copied from ~/.local/share/icons/hicolor/256x256/apps/2887_CommFort.0.png
i=256
install_file ipfs://QmaiWKRyPPSV4QeurB2sZabAv4RYuC5xsYqkBgPERNjZjJ /usr/share/icons/hicolor/${i}x${i}/apps/$PRODUCT.png