More progress on linux build job

This commit is contained in:
DarkPhoenix
2023-12-04 05:29:11 +06:00
parent 39ee8586d4
commit c020bd8898

View File

@@ -3,8 +3,10 @@ version: 1
script:
- rm -rf AppDir | true
- mkdir -p AppDir/usr/src
# Install wx (needed by crowdin script) and sqlalchemy (needed by db update script)
- grep -iE 'wxpython|sqlalchemy' requirements.txt | xargs python3 -B -s -m pip install -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04
# wxpython dependencies to host
- sudo apt install 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
@@ -13,6 +15,7 @@ script:
- 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
- cp imgs/gui/pyfa64.png AppDir/usr/share/icons
AppDir:
path: ./AppDir
@@ -20,7 +23,7 @@ AppDir:
app_info:
id: pyfa
name: pyfa
icon: pyfa
icon: pyfa64
version: $PYFA_VERSION
exec: usr/bin/python3.11
exec_args: "-s $APPDIR/opt/pyfa/pyfa.py $@"
@@ -41,12 +44,15 @@ AppDir:
include:
- python3.11
- libnotify4
exclude: []
after_bundle:
# Install python dependencies to bundled interpreter
- python3.11 -s -m pip install --prefix=/usr --root=AppDir -U pip setuptools wheel
- python3.11 -s -m pip install --prefix=/usr --root=AppDir -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04 -r requirements.txt
- export PYTHONHOME="AppDir/usr"
- export PYTHONPATH="AppDir/usr/lib/python3.11/site-packages"
- 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:
env: