Move lots of preprocessing out of appimg recipe (to support calculation of app version)

This commit is contained in:
DarkPhoenix
2023-12-04 06:39:28 +06:00
parent 713807df13
commit f60090fc79
2 changed files with 21 additions and 39 deletions

View File

@@ -1,31 +1,13 @@
version: 1
script:
- rm -rf AppDir | true
- mkdir -p AppDir/usr/src
# wxpython dependencies to host
- sudo DEBIAN_FRONTEND=noninteractive apt-get install -y libnotify4 libsdl2-2.0-0
# Install wx (needed by crowdin script) and sqlalchemy/logbook (needed by db update script)
- grep -iE 'wxpython|sqlalchemy|logbook' requirements.txt | xargs python3 -B -s -m pip install --user -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04
# Compile app data
- find locale/ -type f -name "*.po" -exec msgen "{}" -o "{}" \;
- python3 -B scripts/compile_lang.py
- python3 -B scripts/dump_crowdin_progress.py
- python3 -B db_update.py
- export PYFA_VERSION="$(python3 -B scripts/dump_version.py)"
# Copy data over to app dir
- 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
- mkdir -p AppDir/usr/share/icons
- cp imgs/gui/pyfa64.png AppDir/usr/share/icons
AppDir:
path: ./AppDir
app_info:
id: pyfa
name: pyfa
icon: pyfa64
version: $PYFA_VERSION
icon: pyfa
version: {{APP_VERSION}}
exec: usr/bin/python3.11
exec_args: "-s $APPDIR/opt/pyfa/pyfa.py $@"
@@ -54,7 +36,6 @@ AppDir:
- export PYTHONPATH="AppDir/usr/lib/python3.11/site-packages"
- curl -L https://bootstrap.pypa.io/get-pip.py -o get-pip.py
- python3.11 get-pip.py
- 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
runtime:
@@ -65,3 +46,4 @@ AppDir:
AppImage:
sign-key: None
arch: x86_64
file_name: 'pyfa-{{APP_VERSION}}-linux'