Skip to content

Commit 887d1d3

Browse files
committed
AppImage creation tweaks
1 parent 7f48ae3 commit 887d1d3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tools/app-image-create.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,22 @@ APP_RUN='#! /bin/bash
2929
APPDIR=`dirname $0`
3030
export PATH="$PATH":"${APPDIR}"/usr/bin
3131
32-
if [ "$(tools/can-run-host.py)" == "ALL_OK" ]; then
32+
if [ "$($APPDIR/can-run-host.py)" == "ALL_OK" ]; then
3333
${APPDIR}/opt/database-dossier/database-dossier.py $@
3434
else
3535
${APPDIR}/usr/bin/python3 ${APPDIR}/opt/database-dossier/database-dossier.py $@
3636
fi'
3737

38+
export CONDA_PYTHON_VERSION="3.9"
39+
3840
export CONDA_CHANNELS='conda-forge'
3941

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

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

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

6870
# The version of PyQt that is compatibile with PyQtWebKit has a nasty bug
6971
# this change makes things work
70-
sed -i 's/QtCore.QMetaObject.connectSlotsByName(self.toplevelWidget)/#QtCore.QMetaObject.connectSlotsByName(self.toplevelWidget)/g' AppDir/usr/conda/lib/*/site-packages/PyQt5/uic/uiparser.py
72+
#sed -i 's/QtCore.QMetaObject.connectSlotsByName(self.toplevelWidget)/#QtCore.QMetaObject.connectSlotsByName(self.toplevelWidget)/g' AppDir/usr/conda/lib/*/site-packages/PyQt5/uic/uiparser.py
73+
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
7174

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

0 commit comments

Comments
 (0)