CursorKeepAlive.spec 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # -*- mode: python ; coding: utf-8 -*-
  2. a = Analysis(
  3. ['cursor_pro_keep_alive.py'],
  4. pathex=[],
  5. binaries=[],
  6. datas=[
  7. ('config.ini', '.'),
  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. import os
  21. if not os.path.exists('config.ini'):
  22. raise FileNotFoundError('config.ini 文件不存在!请确保它在正确的位置。')
  23. pyz = PYZ(a.pure)
  24. exe = EXE(
  25. pyz,
  26. a.scripts,
  27. a.binaries,
  28. a.datas,
  29. [],
  30. name='CursorPro',
  31. debug=False,
  32. bootloader_ignore_signals=False,
  33. strip=False,
  34. upx=True,
  35. upx_exclude=[],
  36. runtime_tmpdir=None,
  37. console=True,
  38. disable_windowed_traceback=False,
  39. argv_emulation=False,
  40. target_arch=None,
  41. codesign_identity=None,
  42. entitlements_file=None,
  43. icon=None
  44. )
  45. app = BUNDLE(
  46. exe,
  47. name='CursorPro.app',
  48. icon=None,
  49. bundle_identifier='com.yourcompany.cursorpro',
  50. info_plist={
  51. 'CFBundleShortVersionString': '1.0.0',
  52. 'CFBundleVersion': '1.0.0',
  53. 'NSHighResolutionCapable': True,
  54. 'LSBackgroundOnly': False,
  55. },
  56. )