Skip to content

Commit 31e04ca

Browse files
authored
Update build.yml
1 parent 9c59077 commit 31e04ca

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ jobs:
5151
enable_gui: true
5252
cgo_enabled: "0"
5353

54-
# Linux 桌面版 amd64
5554
- os: ubuntu-latest
5655
goos: linux
5756
goarch: amd64
@@ -63,7 +62,6 @@ jobs:
6362
enable_gui: true
6463
cgo_enabled: "0"
6564

66-
# Linux 桌面版 arm64
6765
- os: ubuntu-24.04-arm
6866
goos: linux
6967
goarch: arm64
@@ -75,7 +73,6 @@ jobs:
7573
enable_gui: true
7674
cgo_enabled: "0"
7775

78-
# ✅ 软路由 x86_64(无 GUI,静态构建)
7976
- os: ubuntu-latest
8077
goos: linux
8178
goarch: amd64
@@ -87,8 +84,7 @@ jobs:
8784
enable_gui: false
8885
cgo_enabled: "0"
8986

90-
# ✅ 软路由 arm64(RK3588 / 树莓派等)
91-
- os: ubuntu-24.04-arm
87+
- os: ubuntu-latest
9288
goos: linux
9389
goarch: arm64
9490
exe_ext: ""
@@ -141,17 +137,17 @@ jobs:
141137
sudo apt-get install -y python3-pyqt5 python3-pyqt5.qtsvg python3-dev
142138
shell: bash
143139

144-
- name: Install PyInstaller and dependencies
140+
- name: Install PyInstaller, PySocks, and other dependencies
145141
if: startsWith(github.ref, 'refs/tags/') && matrix.enable_gui == true
146142
run: |
147143
python -m pip install --upgrade pip
148144
if [ "${{ matrix.goos }}" == "linux" ]; then
149145
# Linux: 使用系统包中的 PyQt5,只安装其他依赖
150-
pip install pyinstaller pystray Pillow requests PySocks
146+
pip install pyinstaller pystray Pillow PySocks
151147
python -c "import PyQt5.QtWidgets; print('PyQt5 available')" || echo "PyQt5 not available, will skip GUI build"
152148
else
153149
# Windows / macOS: 从 PyPI 安装
154-
pip install pyinstaller PyQt5 pystray Pillow requests PySocks
150+
pip install pyinstaller PyQt5 pystray Pillow PySocks
155151
fi
156152
shell: bash
157153

0 commit comments

Comments
 (0)