diff --git a/code/worker.sh b/code/worker.sh index 4366b737..075a3ba2 100644 --- a/code/worker.sh +++ b/code/worker.sh @@ -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