File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -113,13 +113,13 @@ sleep 7
113113# scrot -u -b database/$INPUTBASENAME/screenshot.jpg
114114
115115sudo 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
118118kill $APID && echo " SUCCESS" || exit 1
119119
120120echo " ==========================================="
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
124124mkdir -p database/$INPUTBASENAME
125125cp " $APPDIR " /* .desktop database/$INPUTBASENAME /
@@ -136,6 +136,12 @@ else
136136 echo " # so that users can easily update the AppImage" >> " $DATAFILE "
137137fi
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+
139145echo " ==========================================="
140146find database/ -type f -name ' *.desktop' -exec cat {} \;
141147
You can’t perform that action at this time.
0 commit comments