File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -122,15 +122,10 @@ jobs:
122122 path : dist/BUAA-Evaluation-Windows.exe
123123
124124 build-linux :
125- runs-on : ubuntu-latest
125+ runs-on : ubuntu-22.04
126126 steps :
127127 - uses : actions/checkout@v4
128128
129- - name : Set up Python
130- uses : actions/setup-python@v5
131- with :
132- python-version : ' 3.11'
133-
134129 - name : Set up Node.js
135130 uses : actions/setup-node@v4
136131 with :
@@ -139,11 +134,11 @@ jobs:
139134 - name : Install system dependencies
140135 run : |
141136 sudo apt-get update
142- sudo apt-get install -y python3-gi gir1.2-webkit2-4.1 libgirepository1.0-dev libcairo2-dev
137+ sudo apt-get install -y python3-pip python3- gi python3-gi-cairo gir1.2-webkit2-4.1 gir1.2-gtk-3.0
143138
144139 - name : Install Python dependencies
145140 run : |
146- pip install pywebview pyinstaller requests beautifulsoup4 pygobject
141+ pip3 install --break-system-packages pywebview pyinstaller requests beautifulsoup4
147142
148143 - name : Build frontend
149144 run : |
@@ -154,7 +149,7 @@ jobs:
154149
155150 - name : Build Linux binary
156151 run : |
157- pyinstaller \
152+ python3 -m PyInstaller \
158153 --name "buaa-evaluation" \
159154 --onefile \
160155 --add-data "backend/web:web" \
@@ -164,8 +159,10 @@ jobs:
164159 --add-data "assets/icons/icon.png:icons" \
165160 --hidden-import webview \
166161 --hidden-import webview.platforms.gtk \
162+ --hidden-import gi \
167163 --hidden-import requests \
168164 --hidden-import bs4 \
165+ --collect-all gi \
169166 --clean \
170167 --noconfirm \
171168 backend/main.py
You can’t perform that action at this time.
0 commit comments