#!/bin/sh -x# It will run with two args: buildroot specBUILDROOT="$1"SPEC="$2"PRODUCT=faststone-image-viewerPRODUCTDIR=/opt/eepm-wine/$PRODUCT.$(dirname$0)/common.shadd_requires '/usr/bin/wine'add_bin_link_command $PRODUCT$PRODUCTDIR/run.shcat<<EOF | create_file /usr/share/applications/$PRODUCT.desktop[Desktop Entry]Name=Faststone image viewerExec=$PRODUCT %FType=ApplicationStartupNotify=trueIcon=$PRODUCTStartupWMClass=FSViewer.exeCategories=Wine;Graphics;EOF# copied from unpacked exe file: FSViewer.exei=128install_file ipfs://QmTQMybWanVQBrV5diGrKDnMbU3zWXtG26uTJ8bcjcKKMp /usr/share/icons/hicolor/${i}x${i}/apps/$PRODUCT.png