Skip to content

Commit 78c802c

Browse files
ci: 添加构建所需的依赖项并设置GI_TYPELIB_PATH环境变量
添加了构建过程中缺少的Python GTK相关依赖项,并设置了GI_TYPELIB_PATH环境变量以确保PyInstaller能够正确找到GObject Introspection类型库
1 parent df67ea4 commit 78c802c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,21 @@ jobs:
7474
pkg-config \
7575
libcairo2-dev \
7676
libgirepository-2.0-dev \
77-
gir1.2-girepository-2.0-dev \
77+
gir1.2-girepository-2.0 \
7878
gir1.2-gtk-3.0 \
7979
gir1.2-webkit2-4.1 \
8080
gir1.2-ayatanaappindicator3-0.1 \
81-
dpkg-dev
81+
dpkg-dev \
82+
python3-gi \
83+
python3-gi-cairo \
84+
libwebkit2gtk-4.1-0 \
85+
libayatana-appindicator3-1 \
86+
libayatana-appindicator3-1-dev \
87+
8288
8389
- name: Build with PyInstaller
90+
env:
91+
GI_TYPELIB_PATH: /usr/lib/x86_64-linux-gnu/girepository-1.0
8492
run: |
8593
# 安装依赖和 pyinstaller
8694
uv sync

0 commit comments

Comments
 (0)