Implement build system for Cursor Pro with platform-specific packaging
- Added build.py script to automate the packaging process for macOS and Windows. - Created CursorKeepAlive.mac.spec and CursorKeepAlive.win.spec for application specifications. - Updated .gitignore to exclude build artifacts and IDE files. - Enhanced directory structure for output files and included configuration file handling in the build process.
This commit is contained in:
57
CursorKeepAlive.mac.spec
Normal file
57
CursorKeepAlive.mac.spec
Normal file
@@ -0,0 +1,57 @@
|
||||
# -*- mode: python ; coding: utf-8 -*-
|
||||
|
||||
a = Analysis(
|
||||
['cursor_pro_keep_alive.py'],
|
||||
pathex=[],
|
||||
binaries=[],
|
||||
datas=[
|
||||
('config.ini', '.'),
|
||||
('turnstilePatch', 'turnstilePatch'),
|
||||
('cursor_auth_manager.py', '.'),
|
||||
],
|
||||
hiddenimports=[
|
||||
'cursor_auth_manager'
|
||||
],
|
||||
hookspath=[],
|
||||
hooksconfig={},
|
||||
runtime_hooks=[],
|
||||
excludes=[],
|
||||
noarchive=False,
|
||||
)
|
||||
|
||||
pyz = PYZ(a.pure)
|
||||
|
||||
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=False,
|
||||
target_arch=None,
|
||||
codesign_identity=None,
|
||||
entitlements_file=None,
|
||||
icon=None
|
||||
)
|
||||
|
||||
app = BUNDLE(
|
||||
exe,
|
||||
name='CursorPro.app',
|
||||
icon=None,
|
||||
bundle_identifier='com.yourcompany.cursorpro',
|
||||
info_plist={
|
||||
'CFBundleShortVersionString': '1.0.0',
|
||||
'CFBundleVersion': '1.0.0',
|
||||
'NSHighResolutionCapable': True,
|
||||
'LSBackgroundOnly': False,
|
||||
},
|
||||
)
|
||||
Reference in New Issue
Block a user