chore: 增加 x86 版本

This commit is contained in:
kinzun
2025-01-06 16:25:08 +08:00
parent 4bd09d9b4d
commit 62d2bae945
2 changed files with 45 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
# -*- mode: python ; coding: utf-8 -*-
import os
a = Analysis(
['cursor_pro_keep_alive.py'],
@@ -20,6 +21,8 @@ a = Analysis(
pyz = PYZ(a.pure)
target_arch = os.environ.get('TARGET_ARCH', None)
exe = EXE(
pyz,
a.scripts,
@@ -35,9 +38,9 @@ exe = EXE(
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
argv_emulation=True, # 对非Mac平台无影响
target_arch=target_arch, # 仅在需要时通过环境变量指定
codesign_identity=None,
entitlements_file=None,
icon=None
)
)