Skip to content

Commit d3eb72f

Browse files
committed
修改workflow打包环境,修复linux下打包问题
1 parent 552cd22 commit d3eb72f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/build.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ jobs:
5757
OUT_FILE_NAME: QBRssManager.exe
5858
ASSET_MIME: application/vnd.microsoft.portable-executable
5959
# linux环境加上qt环境后测试可用
60-
- os: ubuntu-latest
60+
# 这里要用22.04的系统,不要用latest,latest对应的是20.04的旧系统。。。打出来的包会有问题
61+
- os: ubuntu-22.04
6162
TARGET: linux
6263
SHELL: bash
6364
CMD_BUILD: |
@@ -78,11 +79,11 @@ jobs:
7879
target: 'desktop'
7980
arch: 'gcc_64'
8081
- uses: actions/checkout@v3
81-
# python版本固定为3.10 确保新系统可用
82-
- name: 初始化 Python 3.10
82+
# python版本固定为3.7 可以兼容win7
83+
- name: 初始化 Python 3.7
8384
uses: actions/setup-python@v4
8485
with:
85-
python-version: '3.10'
86+
python-version: '3.7'
8687
# 使用缓存 https://github.com/marketplace/actions/setup-python
8788
# 把依赖缓存起来,下次可以直接使用
8889
cache: 'pip'

0 commit comments

Comments
 (0)