Skip to content

Commit

Permalink
AppImage creation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
nshiell committed Jun 5, 2023
1 parent 7f48ae3 commit 887d1d3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tools/app-image-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,22 @@ APP_RUN='#! /bin/bash
APPDIR=`dirname $0`
export PATH="$PATH":"${APPDIR}"/usr/bin
if [ "$(tools/can-run-host.py)" == "ALL_OK" ]; then
if [ "$($APPDIR/can-run-host.py)" == "ALL_OK" ]; then
${APPDIR}/opt/database-dossier/database-dossier.py $@
else
${APPDIR}/usr/bin/python3 ${APPDIR}/opt/database-dossier/database-dossier.py $@
fi'

export CONDA_PYTHON_VERSION="3.9"

export CONDA_CHANNELS='conda-forge'

# I think PyWebkit looks nicer than the new QtWebEngine
#export CONDA_PACKAGES='PyQtWebKit; pyqt5 5.15.7'
export CONDA_PACKAGES='PyQtWebKit';# pyqt5 5.15.7'

# Install PyQt5 at this point - will install the correct version
export PIP_REQUIREMENTS='appdirs mysql_connector_python Pygments'
export PIP_REQUIREMENTS='appdirs mysql_connector_python Pygments pyqt5'

# [Pour everything into a large bowl]
mkdir -p ./AppDir/opt/database-dossier/artwork
Expand All @@ -67,7 +69,8 @@ echo "$APP_RUN" > ./AppDir/AppRun.sh

# The version of PyQt that is compatibile with PyQtWebKit has a nasty bug
# this change makes things work
sed -i 's/QtCore.QMetaObject.connectSlotsByName(self.toplevelWidget)/#QtCore.QMetaObject.connectSlotsByName(self.toplevelWidget)/g' AppDir/usr/conda/lib/*/site-packages/PyQt5/uic/uiparser.py
#sed -i 's/QtCore.QMetaObject.connectSlotsByName(self.toplevelWidget)/#QtCore.QMetaObject.connectSlotsByName(self.toplevelWidget)/g' AppDir/usr/conda/lib/*/site-packages/PyQt5/uic/uiparser.py
sed -i 's/QtCore.QMetaObject.connectSlotsByName(self.toplevelWidget)/#QtCore.QMetaObject.connectSlotsByName(self.toplevelWidget)/g' AppDir/usr/conda/lib/python3.9/site-packages/PyQt5/uic/uiparser.py

mkdir -p AppDir/usr/share/metainfo/
echo '<?xml version="1.0" encoding="UTF-8"?>
Expand Down

0 comments on commit 887d1d3

Please sign in to comment.