TellmeStpToGlb/build.spec
sladro ba45b855c6 feat: 添加可执行文件打包支持
- 新增CLI工具打包脚本build_exe.py,生成stp2glb.exe
- 新增Web服务打包脚本build_web_exe.py,生成stp2glb-server.exe
- 新增PyInstaller配置文件build.spec
- 更新CLAUDE.md文档添加exe打包使用说明
- 支持完全独立部署,无需Python环境

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-10 10:18:48 +08:00

58 lines
1.2 KiB
Python

# -*- mode: python ; coding: utf-8 -*-
a = Analysis(
['main.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[
'OCC',
'OCC.Core',
'OCC.Core.STEPCAFControl_Reader',
'OCC.Core.RWGltf_CafWriter',
'OCC.Core.TDocStd_Document',
'OCC.Core.XCAFDoc_DocumentTool',
'OCC.Core.XCAFApp_Application',
'OCC.Core.BRepMesh_IncrementalMesh',
'OCC.Core.BRep_Builder',
'OCC.Core.TopoDS_Compound',
'trimesh',
'trimesh.exchange',
'trimesh.exchange.gltf',
'fastapi',
'uvicorn',
'pydantic',
],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=None,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=None)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='stp2glb',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)