Skip to content

Commit 54a11a7

Browse files
committed
feat:新增特殊文件处理
1 parent 6dbba6d commit 54a11a7

5 files changed

Lines changed: 313 additions & 45 deletions

File tree

.claude/settings.local.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@
55
"Bash(pip install pyinstaller)",
66
"Bash(python build_exe.py)",
77
"Bash(del build_exe.spec build_exe.py)",
8-
"Bash(pyinstaller --clean --noconfirm build_exe.spec)"
8+
"Bash(pyinstaller --clean --noconfirm build_exe.spec)",
9+
"Bash(pyinstaller --onefile --noconsole --name ClaudeModelManager --add-data \"claude_model_manager;claude_model_manager\" --hidden-import PyQt5 --hidden-import PyQt5.QtCore --hidden-import PyQt5.QtGui --hidden-import PyQt5.QtWidgets --hidden-import requests main_pyqt.py)",
10+
"Bash(dir dist)",
11+
"Bash(dir \"dist\\ClaudeModelManager.exe\")",
12+
"Bash(start ClaudeModelManager.exe)",
13+
"Bash(git rm --cached .env)",
14+
"Bash(git rm --cached claude_models.json)"
915
],
1016
"deny": [],
1117
"ask": []

.gitignore

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
pip-wheel-metadata/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.nox/
42+
.coverage
43+
.coverage.*
44+
.cache
45+
nosetests.xml
46+
coverage.xml
47+
*.cover
48+
*.py,cover
49+
.hypothesis/
50+
.pytest_cache/
51+
52+
# Translations
53+
*.mo
54+
*.pot
55+
56+
# Django stuff:
57+
*.log
58+
local_settings.py
59+
db.sqlite3
60+
db.sqlite3-journal
61+
62+
# Flask stuff:
63+
instance/
64+
.webassets-cache
65+
66+
# Scrapy stuff:
67+
.scrapy
68+
69+
# Sphinx documentation
70+
docs/_build/
71+
72+
# PyBuilder
73+
target/
74+
75+
# Jupyter Notebook
76+
.ipynb_checkpoints
77+
78+
# IPython
79+
profile_default/
80+
ipython_config.py
81+
82+
# pyenv
83+
.python-version
84+
85+
# pipenv
86+
Pipfile.lock
87+
88+
# PEP 582
89+
__pypackages__/
90+
91+
# Celery stuff
92+
celerybeat-schedule
93+
celerybeat.pid
94+
95+
# SageMath parsed files
96+
*.sage.py
97+
98+
# Environments
99+
.env
100+
.venv
101+
env/
102+
venv/
103+
ENV/
104+
env.bak/
105+
venv.bak/
106+
107+
# Spyder project settings
108+
.spyderproject
109+
.spyproject
110+
111+
# Rope project settings
112+
.ropeproject
113+
114+
# mkdocs documentation
115+
/site
116+
117+
# mypy
118+
.mypy_cache/
119+
.dmypy.json
120+
dmypy.json
121+
122+
# Pyre type checker
123+
.pyre/
124+
125+
# IDEs
126+
.vscode/
127+
.idea/
128+
*.swp
129+
*.swo
130+
*~
131+
132+
# OS generated files
133+
.DS_Store
134+
.DS_Store?
135+
._*
136+
.Spotlight-V100
137+
.Trashes
138+
ehthumbs.db
139+
Thumbs.db
140+
141+
# Claude Model Manager specific
142+
# 配置文件(可能包含API密钥)
143+
claude_config.json
144+
config.json
145+
models.json
146+
claude_models.json
147+
148+
# 临时文件
149+
temp/
150+
tmp/
151+
*.tmp
152+
153+
# 日志文件
154+
*.log
155+
logs/
156+
157+
# 备份文件
158+
*.bak
159+
*.backup
160+
161+
# 敏感数据文件
162+
*api_key*
163+
*apikey*
164+
*credentials*
165+
*secret*
166+
.secrets
167+
168+
# 可执行文件(避免上传大量的二进制文件)
169+
*.exe
170+
*.app
171+
*.deb
172+
*.rpm
173+
174+
# 用户生成的配置
175+
user_config/
176+
local_config/

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,15 @@ ClaudeModelSelect/
187187
├── modern_gui.py # 增强Tkinter现代化界面
188188
└── pyqt_gui.py # PyQt现代化界面(支持导入导出)
189189
```
190+
完整打包命令:
191+
pyinstaller --onefile --noconsole --name ClaudeModelManager --add-data "claude_model_manager;claude_model_manager"
192+
--hidden-import PyQt5 --hidden-import PyQt5.QtCore --hidden-import PyQt5.QtGui --hidden-import PyQt5.QtWidgets
193+
--hidden-import requests main_pyqt.py
194+
195+
简化的打包选项:
196+
pyinstaller main_pyqt.py
197+
198+
pyinstaller --onefile --noconsole main_pyqt.py
190199

191200
### 主要特性对比
192201

0 commit comments

Comments
 (0)