Skip to content

Commit

Permalink
Update worker.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd committed Aug 8, 2017
1 parent 51155f1 commit 53d20d5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions code/worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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 {} \;

Expand Down

0 comments on commit 53d20d5

Please sign in to comment.