Extract package.json

This commit is contained in:
probonopd authored and GitHub committed 2017-09-02 17:18:15 +02:00
1 parent fa4c04d5e4
commit b2883776a8
1 file changed
+6 -2
+6 -2
View File
@@ -139,8 +139,6 @@ echo "==========================================="
wget -c -q "https://github.com/AppImage/AppImageHub/releases/download/deps/firejail.tar.gz" ; sudo tar xf firejail.tar.gz -C /
sudo chown root:root /usr/bin/firejail ; sudo chmod u+s /usr/bin/firejail # suid
# Find out whether the application is a GUI application
echo ""
echo "==========================================="
echo "============= TRYING TO RUN ==============="
@@ -260,6 +258,12 @@ if [ -e $APPDIR/usr/share/metainfo/*.appdata.xml ] ; then
cp $APPDIR/usr/share/metainfo/*.appdata.xml database/$INPUTBASENAME/
fi
# get pacakge.json from resources/app.asar for electron-builder applications
if [ -e "$APPDIR/resources/app.asar" ] ; then
asar extract-file "$APPDIR/resources/app.asar" package.json && mv package.json database/$INPUTBASENAME/
fi
echo "==========================================="
if [ $TYPE -eq 2 ] ; then