Skip to content

Commit 38dabb5

Browse files
committed
fix: Add system dependencies for Linux build
- Install python3-tk and python3-dev required for tkinter on Linux - Install libjpeg-dev and libpng-dev for Pillow compilation - Ensure Python packages are installed after system deps
1 parent 00893fd commit 38dabb5

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,27 @@ jobs:
3737
steps:
3838
- uses: actions/checkout@v3
3939

40+
- name: Install system dependencies (Linux)
41+
if: runner.os == 'Linux'
42+
run: |
43+
sudo apt-get update
44+
sudo apt-get install -y python3-tk python3-dev python3-pip
45+
4046
- name: Set up Python
4147
uses: actions/setup-python@v4
4248
with:
4349
python-version: '3.11'
4450

45-
- name: Install dependencies
51+
- name: Install Python dependencies
4652
run: |
4753
python -m pip install --upgrade pip
4854
pip install -r requirements.txt
4955
56+
- name: Install PIL/Pillow optional dependencies (Linux)
57+
if: runner.os == 'Linux'
58+
run: |
59+
sudo apt-get install -y libjpeg-dev libpng-dev
60+
5061
- name: Build with PyInstaller (Linux/macOS)
5162
if: runner.os != 'Windows'
5263
run: |

0 commit comments

Comments
 (0)