#!/bin/sh -x # It will run with two args: buildroot spec BUILDROOT="$1" SPEC="$2" PRODUCT=winbox . $(dirname $0)/common.sh add_bin_link_command $PRODUCT /opt/$PRODUCT/WinBox cat <<EOF | create_file /usr/share/applications/$PRODUCT.desktop [Desktop Entry] Name=WinBox Exec=$PRODUCT %F Type=Application StartupNotify=true Icon=$PRODUCT StartupWMClass=winbox Categories=Network EOF # copied from unpacked exe file: winbox64.exe i=48 install_file ipfs://Qmdkgx2mstbxHtvFuooaUTrRL1tnz5XWh5seiyXQGkTmCW /usr/share/icons/hicolor/${i}x${i}/apps/$PRODUCT.png add_libs_requires