Skip to content

Commit

Permalink
Add Inkscape specific fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd authored Oct 24, 2021
1 parent 0dbf3fb commit 2c76829
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions makebundle
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ for FILE in $(ls "${APPLICATION_NAME}".app/Resources/usr/local/lib/*/*/*.so* 2>/
fi
done

# Patch rpath in Python libraries
find "${APPLICATION_NAME}".app/Resources/usr/local/lib/python*/site-packages/*/*/*.so -exec patchelf --set-rpath '$ORIGIN/../../../../' {} \;
find "${APPLICATION_NAME}".app/Resources/usr/local/lib/python*/site-packages/*/*.so -exec patchelf --set-rpath '$ORIGIN/../../../' {} \;

set -e # End: Continue in the case of errors for now

# TODO: Parse desktop file, get icon, place in correct location
Expand Down Expand Up @@ -180,9 +184,14 @@ if [ "${APPLICATION_NAME}" == "LibreOffice" ] ; then
cp "${APPLICATION_NAME}".app/Resources/usr/local/share/icons/hicolor/256x256/apps/libreoffice-main.png "${APPLICATION_NAME}".app/Resources/"${APPLICATION_NAME}".png
fi

sudo chown -R $USER "${APPLICATION_NAME}".app
zip -r -y "${APPLICATION_NAME}".app.zip "${APPLICATION_NAME}".app
sudo chown -R $USER "${APPLICATION_NAME}".app.zip
# Inkscape specific fixes
if [ "${APPLICATION_NAME}" == "Inkscape" ] ; then
convert -fuzz 10% -transparent white -background transparent -resize 256x256 -gravity north -extent 256x256 "${APPLICATION_NAME}".app/Resources/usr/local/share/inkscape/pixmaps/inkscape.svg "${APPLICATION_NAME}".app/Resources/"${APPLICATION_NAME}".png
fi

# Try to launch it
# launch "${APPLICATION_NAME}".app

sudo chown -R $USER "${APPLICATION_NAME}".app
zip -r -y "${APPLICATION_NAME}".app.zip "${APPLICATION_NAME}".app
sudo chown -R $USER "${APPLICATION_NAME}".app.zip

0 comments on commit 2c76829

Please sign in to comment.