Update worker.sh

This commit is contained in:
probonopd authored and GitHub committed 2017-08-08 18:32:49 +02:00
1 parent 51155f17dd
commit 53d20d5090
1 file changed
+8 -2
+8 -2
View File
@@ -113,13 +113,13 @@ sleep 7
# scrot -u -b database/$INPUTBASENAME/screenshot.jpg
sudo apt-get -y install x11-apps netpbm
xwd -root -silent -display :99.0 | xwdtopnm | pnmtojpeg > database/$INPUTBASENAME/screenshot.jpg
xwd -root -silent -display :99.0 | xwdtopnm | pnmtojpeg > database/$INPUTBASENAME/screenshot.jpg && cat database/$INPUTBASENAME/screenshot.jpg
kill $APID && echo "SUCCESS" || exit 1
echo "==========================================="
# TODO: If everything succeeded until here, then put together a "database file" and display it
# If everything succeeded until here, then put together a "database file" and display it
mkdir -p database/$INPUTBASENAME
cp "$APPDIR"/*.desktop database/$INPUTBASENAME/
@@ -136,6 +136,12 @@ else
echo "# so that users can easily update the AppImage" >> "$DATAFILE"
fi
# If available, also copy in AppStream metainfo
if [ -e $APPDIR/usr/share/metainfo/*.appdata.xml ] ; then
cp $APPDIR/usr/share/metainfo/*.appdata.xml database/$INPUTBASENAME/
fi
echo "==========================================="
find database/ -type f -name '*.desktop' -exec cat {} \;