Initial commit: Add image to icon converter application

This commit is contained in:
iFlow CLI
2026-01-16 14:55:53 +08:00
commit 9508c33c8d
5 changed files with 403 additions and 0 deletions

12
SKILL.md Normal file
View File

@@ -0,0 +1,12 @@
## 元数据
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环境下删除多余的spec文件、build目录和dist目录