Skip to content

Commit 62a9060

Browse files
committed
fix: Use xvfb-run for headless Kivy builds in GitHub Actions
- Add xvfb-run to Linux GUI and CLI builds to provide virtual display - Set KIVY_NO_CONSOLELOG and KIVY_NO_ARGS to reduce build verbosity - Fixes PyInstaller failure when Kivy tries to connect to X server - libtinfo5 already removed from Android dependencies (not needed)
1 parent 9ed9b9b commit 62a9060

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,15 @@ jobs:
4141
pip install pyinstaller
4242
4343
- name: Build Linux GUI
44+
env:
45+
KIVY_NO_CONSOLELOG: 1
46+
KIVY_NO_ARGS: 1
4447
run: |
45-
PYTHONPATH=src pyinstaller fiscalberry-gui.spec
48+
PYTHONPATH=src xvfb-run -a pyinstaller fiscalberry-gui.spec
4649
4750
- name: Build Linux CLI
4851
run: |
49-
PYTHONPATH=src pyinstaller fiscalberry-cli.spec
52+
PYTHONPATH=src xvfb-run -a pyinstaller fiscalberry-cli.spec
5053
5154
- name: Package Linux Binaries
5255
run: |
@@ -172,7 +175,6 @@ jobs:
172175
zlib1g-dev \
173176
libncurses5-dev \
174177
libncursesw5-dev \
175-
libtinfo5 \
176178
cmake \
177179
libffi-dev \
178180
libssl-dev \

0 commit comments

Comments
 (0)