Skip to content

Commit 4270212

Browse files
committed
fix: Correct buildozer command syntax and add Kivy mock backend for Windows
Android: - Changed from invalid 'buildozer android debug -s' to 'buildozer -c' - Buildozer does not recognize -s flag, correct syntax is -c/--config Windows: - Added KIVY_GL_BACKEND=mock to prevent OpenGL initialization - GitHub Actions Windows runners lack OpenGL 2.0 support - Added KIVY_NO_CONSOLELOG and KIVY_NO_ARGS for cleaner builds
1 parent 4f6227d commit 4270212

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/build-release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,19 @@ jobs:
9898
pip install pyinstaller
9999
100100
- name: Build Windows GUI
101+
env:
102+
KIVY_NO_CONSOLELOG: 1
103+
KIVY_NO_ARGS: 1
104+
KIVY_GL_BACKEND: mock
101105
run: |
102106
$env:PYTHONPATH="src"
103107
pyinstaller fiscalberry-gui.spec
104108
105109
- name: Build Windows CLI
110+
env:
111+
KIVY_NO_CONSOLELOG: 1
112+
KIVY_NO_ARGS: 1
113+
KIVY_GL_BACKEND: mock
106114
run: |
107115
$env:PYTHONPATH="src"
108116
pyinstaller fiscalberry-cli.spec
@@ -200,7 +208,7 @@ jobs:
200208
201209
- name: Build Android APK
202210
run: |
203-
buildozer android debug -s buildozer.ui.android.spec
211+
buildozer -c buildozer.ui.android.spec android debug
204212
205213
- name: Find and rename APK
206214
id: find_apk

0 commit comments

Comments
 (0)