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
113
113
# scrot -u -b database/$INPUTBASENAME/screenshot.jpg
114
114
115
115
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
117
117
118
118
kill $APID && echo " SUCCESS" || exit 1
119
119
120
120
echo " ==========================================="
121
121
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
123
123
124
124
mkdir -p database/$INPUTBASENAME
125
125
cp " $APPDIR " /* .desktop database/$INPUTBASENAME /
@@ -136,6 +136,12 @@ else
136
136
echo " # so that users can easily update the AppImage" >> " $DATAFILE "
137
137
fi
138
138
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
+
139
145
echo " ==========================================="
140
146
find database/ -type f -name ' *.desktop' -exec cat {} \;
141
147
You can’t perform that action at this time.
0 commit comments