Skip to content

Commit 53d20d5

Browse files
authored
Update worker.sh
1 parent 51155f1 commit 53d20d5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

code/worker.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ sleep 7
113113
# scrot -u -b database/$INPUTBASENAME/screenshot.jpg
114114

115115
sudo apt-get -y install x11-apps netpbm
116-
xwd -root -silent -display :99.0 | xwdtopnm | pnmtojpeg > database/$INPUTBASENAME/screenshot.jpg
116+
xwd -root -silent -display :99.0 | xwdtopnm | pnmtojpeg > database/$INPUTBASENAME/screenshot.jpg && cat database/$INPUTBASENAME/screenshot.jpg
117117

118118
kill $APID && echo "SUCCESS" || exit 1
119119

120120
echo "==========================================="
121121

122-
# TODO: If everything succeeded until here, then put together a "database file" and display it
122+
# If everything succeeded until here, then put together a "database file" and display it
123123

124124
mkdir -p database/$INPUTBASENAME
125125
cp "$APPDIR"/*.desktop database/$INPUTBASENAME/
@@ -136,6 +136,12 @@ else
136136
echo "# so that users can easily update the AppImage" >> "$DATAFILE"
137137
fi
138138

139+
# If available, also copy in AppStream metainfo
140+
141+
if [ -e $APPDIR/usr/share/metainfo/*.appdata.xml ] ; then
142+
cp $APPDIR/usr/share/metainfo/*.appdata.xml database/$INPUTBASENAME/
143+
fi
144+
139145
echo "==========================================="
140146
find database/ -type f -name '*.desktop' -exec cat {} \;
141147

0 commit comments

Comments
 (0)