48
48
if : runner.os == 'Linux'
49
49
run : |
50
50
sudo apt-get update
51
- sudo apt-get install -y libcups2-dev # Add other Kivy deps if needed (e.g., libsdl2-dev libgstreamer1.0-dev)
51
+ sudo apt-get install -y \
52
+ libcups2-dev \
53
+ # Add Kivy dependencies
54
+ libsdl2-dev \
55
+ libsdl2_image-dev \
56
+ libsdl2_mixer-dev \
57
+ libsdl2_ttf-dev \
58
+ libgstreamer1.0-dev \
59
+ libgstreamer-plugins-base1.0-dev \
60
+ libmtdev-dev \
61
+ # Add xvfb
62
+ xvfb
52
63
53
64
# Add steps for macOS dependencies if needed (e.g., using brew)
54
65
# - name: Install macOS dependencies (if applicable)
@@ -59,18 +70,23 @@ jobs:
59
70
- name : Install PyInstaller
60
71
run : python -m pip install --upgrade pip pyinstaller
61
72
62
- # --- Build CLI ---
63
- - name : Install CLI dependencies
64
- run : pip install -r requirements.cli .txt
73
+ # --- Build GUI ---
74
+ - name : Install GUI dependencies (includes Kivy)
75
+ run : pip install -r requirements.kivy .txt # This should include CLI deps too
65
76
66
- - name : Build CLI executable (${{ matrix.os_name }})
67
- run : pyinstaller fiscalberry-cli.spec
77
+ - name : Build GUI executable (${{ matrix.os_name }})
78
+ # Wrap pyinstaller command with xvfb-run for Linux builds
79
+ run : |
80
+ if [ "$RUNNER_OS" == "Linux" ]; then
81
+ xvfb-run --auto-servernum pyinstaller fiscalberry-gui.spec
82
+ else
83
+ pyinstaller fiscalberry-gui.spec
84
+ fi
68
85
69
- - name : Rename CLI artifact
86
+ - name : Rename GUI artifact
70
87
shell : bash # Use bash for consistent mv/move commands
71
88
run : |
72
- mkdir -p artifacts
73
- mv ${{ matrix.artifact_path_cli }} artifacts/fiscalberry-cli-${{ matrix.asset_suffix_cli }}
89
+ mv ${{ matrix.artifact_path_gui }} artifacts/fiscalberry-gui-${{ matrix.asset_suffix_gui }}
74
90
75
91
# --- Build GUI ---
76
92
- name : Install GUI dependencies (includes Kivy)
@@ -112,7 +128,7 @@ jobs:
112
128
run : |
113
129
docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace fiscalberry-arm /bin/bash -c "
114
130
pip install -r requirements.cli.txt &&
115
- pyinstaller fiscalberry-pi .spec &&
131
+ pyinstaller fiscalberry-cli .spec &&
116
132
ls -la dist"
117
133
118
134
- name : Rename Pi CLI artifact
0 commit comments