liumaolin commited on
Commit
9cf375f
·
1 Parent(s): de71b66

Update `voice_dialogue.spec`: add comments for build stages and disable macOS `.app` bundle configuration

Browse files
build/pyinstaller/voice_dialogue.spec CHANGED
@@ -17,6 +17,7 @@ if source_code_root.as_posix() not in sys.path:
17
  if third_party_root.as_posix() not in sys.path:
18
  sys.path.insert(0, third_party_root.as_posix())
19
 
 
20
  a = Analysis(
21
  [main_path.as_posix()],
22
  pathex=[],
@@ -33,6 +34,7 @@ a = Analysis(
33
  )
34
  pyz = PYZ(a.pure)
35
 
 
36
  exe = EXE(
37
  pyz,
38
  a.scripts,
@@ -59,9 +61,11 @@ coll = COLLECT(
59
  upx_exclude=[],
60
  name='voice_dialogue',
61
  )
62
- app = BUNDLE(
63
- coll,
64
- name='voice_dialogue.app',
65
- icon=None,
66
- bundle_identifier=None,
67
- )
 
 
 
17
  if third_party_root.as_posix() not in sys.path:
18
  sys.path.insert(0, third_party_root.as_posix())
19
 
20
+ # --- PyInstaller 分析阶段 ---
21
  a = Analysis(
22
  [main_path.as_posix()],
23
  pathex=[],
 
34
  )
35
  pyz = PYZ(a.pure)
36
 
37
+ # --- 可执行文件构建阶段 ---
38
  exe = EXE(
39
  pyz,
40
  a.scripts,
 
61
  upx_exclude=[],
62
  name='voice_dialogue',
63
  )
64
+
65
+ # --- macOS .app 包配置 ---
66
+ # app = BUNDLE(
67
+ # coll,
68
+ # name='voice_dialogue.app',
69
+ # icon=None,
70
+ # bundle_identifier=None,
71
+ # )