加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
DDMonitor_macos.spec 2.74 KB
一键复制 编辑 原始数据 按行查看 历史
执明神君 提交于 2022-01-28 21:20 . 改为pyside2框架
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['DD监控室.py'],
pathex=[],
binaries=[
],
datas=[
('utils/ascii.txt', '.'),
('utils/help.html', '.'),
('utils/qdark.qss', 'utils'),
('utils/splash.jpg', 'utils'),
('utils/vtb.csv', 'utils'),
],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[
# PySide2
'PySide2.QtNetwork',
'PySide2.QtQml',
'PySide2.QAxContainer',
'PySide2.QtBluetooth',
'PySide2.QtDBus',
'PySide2.QtDesigner',
'PySide2.QtHelp',
'PySide2.QtMultimedia',
'PySide2.QtMultimediaWidgets',
'PySide2.QtNetworkAuth',
'PySide2.QtNfc',
'PySide2.QtOpenGL',
'PySide2.QtPositioning',
'PySide2.QtLocation',
'PySide2.QtPrintSupport',
'PySide2.QtQuick',
'PySide2.QtQuick3D',
'PySide2.QtQuickWidgets',
'PySide2.QtRemoteObjects',
'PySide2.QtSensors',
'PySide2.QtSerialPort',
'PySide2.QtSql',
'PySide2.QtSvg',
'PySide2.QtTest',
'PySide2.QtTextToSpeech',
'PySide2.QtWebChannel',
'PySide2.QtWebSockets',
'PySide2.QtWinExtras',
'PySide2.QtXml',
'PySide2.QtXmlPatterns'
],
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='DDMonitor',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=False,
icon='favicon.ico',
console=False )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=False,
name='DDMonitor')
app = BUNDLE(coll,
name='DDMonitor.app',
icon='favicon.ico',
bundle_identifier='com.github.zhimingshenjun.ddmonitor',
info_plist={
'NSAppleScriptEnabled': False,
'NSPrincipalClass': 'NSApplication',
'NSAppleScriptEnabled': False,
'CFBundleDocumentTypes': [],
'CFBundleName': 'DDMonitor'
}
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化