Make AppImage build python-version independent
This commit is contained in:
1 parent
d70e3b85b7
commit
8cfa43b52b
1 file changed
+3
-5
@@ -23,7 +23,7 @@ script:
|
|||||||
- cp "$SOURCE_DIR/pickaxe.png" "$TARGET_APPDIR/usr/share/icons/hicolor/128x128/apps/io.github.devilxd.twitchdropsminer.png"
|
- cp "$SOURCE_DIR/pickaxe.png" "$TARGET_APPDIR/usr/share/icons/hicolor/128x128/apps/io.github.devilxd.twitchdropsminer.png"
|
||||||
|
|
||||||
# Remove certifi from the line below if using Python 3.10+.
|
# Remove certifi from the line below if using Python 3.10+.
|
||||||
- python3.8 -m pip install --ignore-installed --prefix=/usr --root="$TARGET_APPDIR" -r "$SOURCE_DIR/../requirements.txt" certifi
|
- python3 -m pip install --ignore-installed --prefix=/usr --root="$TARGET_APPDIR" -r "$SOURCE_DIR/../requirements.txt"
|
||||||
|
|
||||||
AppDir:
|
AppDir:
|
||||||
app_info:
|
app_info:
|
||||||
@@ -31,7 +31,7 @@ AppDir:
|
|||||||
name: Twitch Drops Miner
|
name: Twitch Drops Miner
|
||||||
icon: io.github.devilxd.twitchdropsminer
|
icon: io.github.devilxd.twitchdropsminer
|
||||||
version: '{{APP_VERSION}}'
|
version: '{{APP_VERSION}}'
|
||||||
exec: usr/bin/python3.8
|
exec: usr/bin/python3
|
||||||
exec_args: '${APPDIR}/usr/src/main.py $@'
|
exec_args: '${APPDIR}/usr/src/main.py $@'
|
||||||
|
|
||||||
apt:
|
apt:
|
||||||
@@ -126,13 +126,11 @@ AppDir:
|
|||||||
env:
|
env:
|
||||||
PATH: '${APPDIR}/usr/bin:${PATH}'
|
PATH: '${APPDIR}/usr/bin:${PATH}'
|
||||||
PYTHONHOME: '${APPDIR}/usr'
|
PYTHONHOME: '${APPDIR}/usr'
|
||||||
PYTHONPATH: '${APPDIR}/usr/lib/python3.8/tkinter:${APPDIR}/usr/lib/python3.8/site-packages'
|
PYTHONPATH: '${APPDIR}/usr/lib/python${{env.PYTHON_VERSION}}/tkinter:${APPDIR}/usr/lib/python${{env.PYTHON_VERSION}}/site-packages'
|
||||||
APPDIR_LIBRARY_PATH: '${APPDIR}/usr/lib:${APPDIR}/usr/lib/x86_64-linux-gnu:${APPDIR}/lib/x86_64-linux-gnu'
|
APPDIR_LIBRARY_PATH: '${APPDIR}/usr/lib:${APPDIR}/usr/lib/x86_64-linux-gnu:${APPDIR}/lib/x86_64-linux-gnu'
|
||||||
TCL_LIBRARY: '${APPDIR}/usr/share/tcltk/tcl8.6'
|
TCL_LIBRARY: '${APPDIR}/usr/share/tcltk/tcl8.6'
|
||||||
TK_LIBRARY: '${APPDIR}/usr/lib/tcltk/x86_64-linux-gnu/tk8.6'
|
TK_LIBRARY: '${APPDIR}/usr/lib/tcltk/x86_64-linux-gnu/tk8.6'
|
||||||
TKPATH: '${APPDIR}/usr/lib/tcltk/x86_64-linux-gnu/tk8.6'
|
TKPATH: '${APPDIR}/usr/lib/tcltk/x86_64-linux-gnu/tk8.6'
|
||||||
# Remove the line below if using Python 3.10+.
|
|
||||||
SSL_CERT_FILE: '${APPDIR}/usr/lib/python3.8/site-packages/certifi/cacert.pem'
|
|
||||||
# The app seems to have problems running on Wayland at the moment.
|
# The app seems to have problems running on Wayland at the moment.
|
||||||
# See: https://github.com/DevilXD/TwitchDropsMiner/issues/321
|
# See: https://github.com/DevilXD/TwitchDropsMiner/issues/321
|
||||||
GDK_BACKEND: x11
|
GDK_BACKEND: x11
|
||||||
|
|||||||
Reference in new issue
Block a user