CursorKeepAlive.spec 940 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # -*- mode: python ; coding: utf-8 -*-
  2. import os
  3. a = Analysis(
  4. ['cursor_pro_keep_alive.py'],
  5. pathex=[],
  6. binaries=[],
  7. datas=[
  8. ('turnstilePatch', 'turnstilePatch'),
  9. ('cursor_auth_manager.py', '.'),
  10. ],
  11. hiddenimports=[
  12. 'cursor_auth_manager'
  13. ],
  14. hookspath=[],
  15. hooksconfig={},
  16. runtime_hooks=[],
  17. excludes=[],
  18. noarchive=False,
  19. )
  20. pyz = PYZ(a.pure)
  21. target_arch = os.environ.get('TARGET_ARCH', None)
  22. exe = EXE(
  23. pyz,
  24. a.scripts,
  25. a.binaries,
  26. a.datas,
  27. [],
  28. name='CursorPro',
  29. debug=False,
  30. bootloader_ignore_signals=False,
  31. strip=False,
  32. upx=True,
  33. upx_exclude=[],
  34. runtime_tmpdir=None,
  35. console=True,
  36. disable_windowed_traceback=False,
  37. argv_emulation=True, # 对非Mac平台无影响
  38. target_arch=target_arch, # 仅在需要时通过环境变量指定
  39. codesign_identity=None,
  40. entitlements_file=None,
  41. icon=None
  42. )