feat: 优化打包
This commit is contained in:
@@ -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,
|
||||
},
|
||||
)
|
||||
)
|
||||
Reference in New Issue
Block a user