Skip to content

Commit 0b65153

Browse files
committed
update
1 parent c2404a4 commit 0b65153

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/dev_package_and_upload.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ jobs:
182182
with:
183183
name: ${{ runner.os }}-${{ runner.arch }}-${{ github.event.inputs.test && 'test-' || '' }}artifact
184184
path: |
185-
./dist/*.exe
185+
./dist/*
186186
retention-days: 14
187187
if-no-files-found: warn
188188
overwrite: true

package/nuitka_build.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ def main():
2727
system_os = platform.system()
2828
arch = platform.machine()
2929

30-
print(f"当前操作系统: {system_os} {arch}")
30+
print(f"当前操作系统: {system_os}")
31+
print(f'架构: {arch}')
3132
print(f"平台详情: {platform.platform()}")
3233
print("CPU核心数:", os.cpu_count())
34+
print("处理器信息:", platform.processor())
3335
print(f"Python版本: {sys.version}")
3436

3537
# 解析命令行参数
@@ -190,6 +192,20 @@ def main():
190192
# 输出最终结果
191193
print("\n" + "="*50)
192194
print(f"打包完成: 成功 {success_count} 个, 失败 {len(task_error_list)} 个")
195+
196+
if success_count != 0:
197+
files_list = []
198+
199+
# 遍历目录下的所有条目
200+
for entry in os.listdir(str(base_dir / 'dist')):
201+
# 拼接完整的文件路径
202+
full_path = os.path.join(str(base_dir / 'dist'), entry)
203+
# 检查该路径是否为文件
204+
if os.path.isfile(full_path):
205+
files_list.append(entry)
206+
207+
# 输出文件列表
208+
print(f'Dist: {str(files_list)}')
193209

194210
if task_error_list:
195211
print(f"失败的任务: {', '.join(task_error_list)}")

0 commit comments

Comments
 (0)