# -*- mode: python ; coding: utf-8 -*- import os a = Analysis( ['cursor_pro_keep_alive.py'], pathex=[], binaries=[], datas=[ ('turnstilePatch', 'turnstilePatch'), ('cursor_auth_manager.py', '.'), ], hiddenimports=[ 'cursor_auth_manager' ], hookspath=[], hooksconfig={}, runtime_hooks=[], excludes=[], noarchive=False, ) pyz = PYZ(a.pure) target_arch = os.environ.get('TARGET_ARCH', None) exe = EXE( pyz, a.scripts, a.binaries, a.datas, [], name='CursorPro', debug=False, bootloader_ignore_signals=False, strip=False, upx=True, upx_exclude=[], runtime_tmpdir=None, console=True, disable_windowed_traceback=False, argv_emulation=True, # 对非Mac平台无影响 target_arch=target_arch, # 仅在需要时通过环境变量指定 codesign_identity=None, entitlements_file=None, icon=None )