更新 .github/workflows/build-exe.yml
发布 v1.0 Signed-off-by: miu <205594122@qq.com>
This commit is contained in:
11
.github/workflows/build-exe.yml
vendored
11
.github/workflows/build-exe.yml
vendored
@@ -1,5 +1,11 @@
|
|||||||
name: Build Windows EXE with Full Image
|
name: Build Windows EXE with Full Image
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
# 推荐:只在打标签时触发 Release
|
||||||
|
tags:
|
||||||
|
- 'v*' # 例如推送 v1.0.0, v2.1.3 等标签时触发
|
||||||
|
# 如果你想在每次推送时都创建,也可以保留 branches,但通常会打 tag
|
||||||
|
branches: ["main"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -91,6 +97,9 @@ jobs:
|
|||||||
# 步骤5:安装依赖
|
# 步骤5:安装依赖
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
# 先配置 pip 使用清华源(或其他国内源)
|
||||||
|
wine "$PYTHON_EXE" -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
||||||
|
wine "$PYTHON_EXE" -m pip config set install.trusted-host pypi.tuna.tsinghua.edu.cn
|
||||||
# 升级 pip
|
# 升级 pip
|
||||||
wine "$PYTHON_EXE" -m pip install --upgrade pip
|
wine "$PYTHON_EXE" -m pip install --upgrade pip
|
||||||
# 安装包
|
# 安装包
|
||||||
|
|||||||
Reference in New Issue
Block a user