Ai
0 Star 2 Fork 2

Crogram Pythub/pythub-builder

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.spec 2.21 KB
一键复制 编辑 原始数据 按行查看 历史
Jackson 提交于 2025-05-14 13:03 +08:00 . 发布更新 v1.1.0
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
APP_ID = 'org.pythub.builder'
APP_NAME = 'Pythub Builder'
APP_NAME_DISPLAY = 'Pythub Builder'
APP_APP = 'PythubBuilder.app'
APP_VERSION = '1.1.0'
APP_BUILD = 11
APP_COPYRIGHT = 'Copyright © 2025 Crogram All Rights Reserved.'
# HIDDEN_IMPORTS = ['PyInstaller.__main__'] # 源文件的依赖模块
EXCLUDES = ['altgraph', 'numpy', 'psutil', 'wheel', 'setuptools', 'PIL'] # 不需要打包的模块
UPX = True # 如果有UPX安装(执行Configure.py时检测),会压缩执行文件(Windows系统中的DLL也会)
MacDeveloperID='Developer ID Application: CROGRAM INC. (4LWSS9P873)'
a = Analysis(['src/app.py'],
pathex=['src'],
binaries=[],
datas=[],
hiddenimports=None,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=EXCLUDES,
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(pyz,
a.scripts, [],
exclude_binaries=True,
name=APP_NAME,
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=UPX,
console=False,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=MacDeveloperID,
entitlements_file=None)
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=UPX,
upx_exclude=[],
name=APP_NAME)
app = BUNDLE(coll,
name=APP_APP,
icon='resources/app.icns',
bundle_identifier=APP_ID,
info_plist={
'CFBundleName': APP_NAME,
'CFBundleDisplayName': APP_NAME_DISPLAY,
'CFBundleDevelopmentRegion': 'zh_CN',
'CFBundleExecutable': APP_NAME,
'CFBundlePackageType': 'APPL',
'CFBundleSupportedPlatforms': ['MacOSX'],
'CFBundleGetInfoString': 'CROGRAM INC.',
'CFBundleIdentifier': APP_ID,
'CFBundleShortVersionString': APP_VERSION,
'CFBundleVersion': APP_BUILD,
# 'CFBundleInfoDictionaryVersion': '6.0',
'NSHighResolutionCapable': True,
'LSApplicationCategoryType': 'public.app-category.utilities',
'NSHumanReadableCopyright': APP_COPYRIGHT
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/pythub/pythub-builder.git
git@gitee.com:pythub/pythub-builder.git
pythub
pythub-builder
pythub-builder
main

搜索帮助