Files
desktop-transfer/.trae/skills/pyinstaller-one/SKILL.md
xiaji 8a5450eeae 添加PyInstaller打包配置及清理脚本
添加translate.ico图标文件
更新.gitignore忽略.spec文件
修改main.py导入路径为main_window_final
优化translator.py的错误处理
添加pyinstaller-one技能目录及文档
更新main.spec配置排除不必要的依赖
添加verify_features.py功能验证脚本
2026-01-16 16:37:07 +08:00

17 lines
834 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
name: pyinstaller-one
description: 基于python代码使用pyinstaller打包的时候用这个统一打包的要求格式。
---
## 元数据
name: pyinstaller个性化打包
description: 打包的时候要求生成为一个exe文件使用ico等等
## 概述
此 Skill 用于给有GUI界面的python代码打包的时候生成一个统一的要求生成一个exe文件去掉控制台窗口使用本目录下的ico文件作为程序的图标。打包时如果之前有打包过的文件dist/build 文件夹),自动覆盖旧文件,不用手动确认,一键打包到底。
## 打包命令示例
pyinstaller --onefile --noconsole --icon=图标文件名.ico --distpath=. --hidden-import=PySide6.Qt6Compat python程序名.py
## 清除多余文件
在windows环境下执行clean.py