Skip to content

Commit 085cc33

Browse files
Fix: 新的Action,修复打包不包含prompt问题
1 parent f76f3fc commit 085cc33

File tree

2 files changed

+17
-59
lines changed

2 files changed

+17
-59
lines changed

.github/workflows/Test-AutoBuildAction.yml .github/workflows/AutoPackage.yml

+17-13
Original file line numberDiff line numberDiff line change
@@ -15,50 +15,54 @@ jobs:
1515
runs-on: ${{ matrix.os }}
1616

1717
steps:
18-
- name: Check-out repository
18+
- name: 检出代码
1919
uses: actions/checkout@v4
2020

21-
- name: Check if main.py and prompt.txt exist
21+
- name: 检查 main.py prompt.txt 是否存在
2222
shell: bash
2323
run: |
2424
if [ ! -f "main.py" ]; then
25-
echo "Error: main.py does not exist!"
25+
echo "错误: main.py 不存在!"
2626
exit 1
2727
fi
2828
if [ ! -f "files/prompt.txt" ]; then
29-
echo "Error: files/prompt.txt does not exist!"
29+
echo "错误: files/prompt.txt 不存在!"
3030
exit 1
3131
fi
3232
33-
- name: Setup Python
33+
- name: 设置 Python 环境
3434
uses: actions/setup-python@v5
3535
with:
3636
python-version: '3.10'
3737
cache: 'pip'
3838
cache-dependency-path: |
3939
**/requirements*.txt
4040
41-
- name: Install your Dependencies
41+
- name: 安装依赖
4242
run: |
4343
pip install -r requirements.txt
4444
45-
- name: Verify Installed Dependencies
45+
- name: 验证已安装的依赖
4646
run: |
4747
pip list
4848
49-
- name: Build Executable with Nuitka
49+
- name: 使用 Nuitka 打包可执行文件
5050
uses: Nuitka/Nuitka-Action@main
5151
with:
5252
nuitka-version: main
5353
script-name: main.py
5454
mode: app
55-
include-data-files: |
56-
./files/prompt.txt=files/prompt.txt
55+
include-data-dir: |
56+
./files=files
5757
58-
- name: Upload Artifacts
58+
- name: 列出打包后的文件
59+
run: |
60+
ls -R build/
61+
62+
- name: 上传构建产物
5963
uses: actions/upload-artifact@v4
6064
with:
61-
name: ${{ runner.os }} Build
65+
name: ${{ runner.os }} 构建
6266
path: |
6367
build/
64-
include-hidden-files: true
68+
include-hidden-files: true

.github/workflows/auto-package.yml

-46
This file was deleted.

0 commit comments

Comments
 (0)