Another attempt to bundle python with appimg

This commit is contained in:
DarkPhoenix
2023-12-04 00:57:09 +06:00
parent 85e740d75a
commit 555e72a27a

View File

@@ -1,7 +1,7 @@
version: 1
AppDir:
path: $BUILD_DIR/AppDir
path: ./AppDir
app_info:
id: pyfa
@@ -31,8 +31,8 @@ AppDir:
after_bundle:
# Install python dependencies
- python3.11 -s -m pip install -U pip setuptools wheel
- python3.11 -s -m pip install -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04 -r requirements.txt
- python3.11 -s -m pip install --system --prefix=/usr --root=AppDir -U pip setuptools wheel
- python3.11 -s -m pip install --system --prefix=/usr --root=AppDir -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04 -r requirements.txt
# Compile app data
- find locale/ -type f -name "*.po" -exec msgen "{}" -o "{}" \;
- python3.11 scripts/compile_lang.py
@@ -42,8 +42,13 @@ AppDir:
- export PYFA_VERSION="$(python3.11 scripts/dump_version.py)"
# Copy app and clean it up
- mkdir -p $AppDir/usr/src
- cp -r eos graphs gui imgs locale service utils eve.db config.py pyfa.py db_update.py README.md LICENSE version.yml $AppDir/usr/src
- find $AppDir/usr/src | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
- cp -r eos graphs gui imgs locale service utils eve.db config.py pyfa.py db_update.py README.md LICENSE version.yml AppDir/usr/src
- find AppDir/usr/src | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
runtime:
env:
PYTHONHOME: '${APPDIR}/usr'
PYTHONPATH: '${APPDIR}/usr/lib/python3.11/site-packages'
AppImage:
sign-key: None