序号 | 文件名 | 作用 |
---|---|---|
A001 | MuChenVersion.py | 客户端程序代码 |
A002 | ChangeTime.py | 服务器时间管理模块程序代码 |
A003 | ConectGit.py | 远程仓库下载打包程序代码 |
A004 | build_packger.py | 项目打包程序代码 |
- 项目打包程序代码:build_packger.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
# @Users: LiMu
# @Files:build_packger.py
# @Times: 2023/6/12
# @Software:PyCharm
import os
filepath = os.path.abspath(os.path.dirname(__file__))
# os.system("cd E:/NewHandInGuide && pyinstaller --onefile .\sd3_new_hand_guide.py && python setup.py build && nuitka .\sd3_new_hand_guide.py ")
# os.system("cd E:\OneDrive\Desktop\临时文件 && dir")
os.system(f"cd {filepath} && pyinstaller --onefile .\MuChenVersion.py")
- 执行结果
1935 INFO: PyInstaller: 5.11.0
1935 INFO: Python: 3.8.8
1935 INFO: Platform: Windows-10-10.0.19041-SP0
1936 INFO: wrote E:\PyAmmWorkspac\UpdateTime\MuChenVersion.spec
1941 INFO: UPX is not available.
1942 INFO: Extending PYTHONPATH with paths
['E:\\PyAmmWorkspac\\UpdateTime']
4768 INFO: checking Analysis
4768 INFO: Building Analysis because Analysis-00.toc is non existent
4768 INFO: Initializing module dependency graph...
4771 INFO: Caching module graph hooks...
4799 INFO: Analyzing base_library.zip ...
省略一万字
68770 INFO: Writing RT_ICON 7 resource with 1128 bytes
69039 INFO: Copying 0 resources to EXE
69039 INFO: Embedding manifest in EXE
69040 INFO: Updating manifest in E:\PyAmmWorkspac\UpdateTime\dist\MuChenVersion.exe.notanexecutable
69040 INFO: Updating resource type 24 name 1 language 0
69312 INFO: Appending PKG archive to EXE
69334 INFO: Fixing EXE headers
69744 INFO: Building EXE from EXE-00.toc completed successfully.
进程已结束,退出代码0
-
成品游览