feat: 优化打包

This commit is contained in:
cheng zhen
2024-12-29 08:59:43 +08:00
parent bd45b1f1a6
commit 7dc3af0798
5 changed files with 33 additions and 139 deletions

View File

@@ -5,7 +5,6 @@ a = Analysis(
pathex=[],
binaries=[],
datas=[
('config.ini', '.'),
('turnstilePatch', 'turnstilePatch'),
('cursor_auth_manager.py', '.'),
],
@@ -19,10 +18,6 @@ a = Analysis(
noarchive=False,
)
import os
if not os.path.exists('config.ini'):
raise FileNotFoundError('config.ini 文件不存在!请确保它在正确的位置。')
pyz = PYZ(a.pure)
exe = EXE(
@@ -45,17 +40,4 @@ exe = EXE(
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,
},
)
)