Skip to content

Commit ad803d9

Browse files
authored
Update build.yml
1 parent 26106ad commit ad803d9

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -141,19 +141,19 @@ jobs:
141141
sudo apt-get install -y python3-pyqt5 python3-pyqt5.qtsvg python3-dev
142142
shell: bash
143143

144-
- name: Install PyInstaller and dependencies
145-
if: startsWith(github.ref, 'refs/tags/') && matrix.enable_gui == true
146-
run: |
147-
python -m pip install --upgrade pip
148-
if [ "${{ matrix.goos }}" == "linux" ]; then
149-
# Linux: 使用系统包中的 PyQt5,只安装其他依赖
150-
pip install pyinstaller pystray Pillow
151-
python -c "import PyQt5.QtWidgets; print('PyQt5 available')" || echo "PyQt5 not available, will skip GUI build"
152-
else
153-
# Windows / macOS: 从 PyPI 安装
154-
pip install pyinstaller PyQt5 pystray Pillow
155-
fi
156-
shell: bash
144+
- name: Install PyInstaller and dependencies
145+
if: startsWith(github.ref, 'refs/tags/') && matrix.enable_gui == true
146+
run: |
147+
python -m pip install --upgrade pip
148+
if [ "${{ matrix.goos }}" == "linux" ]; then
149+
# Linux: 使用系统包中的 PyQt5,只安装其他依赖
150+
pip install pyinstaller pystray Pillow requests PySocks
151+
python -c "import PyQt5.QtWidgets; print('PyQt5 available')" || echo "PyQt5 not available, will skip GUI build"
152+
else
153+
# Windows / macOS: 从 PyPI 安装
154+
pip install pyinstaller PyQt5 pystray Pillow requests PySocks
155+
fi
156+
shell: bash
157157

158158
- name: Build Python executable
159159
if: startsWith(github.ref, 'refs/tags/') && matrix.enable_gui == true

0 commit comments

Comments
 (0)