Skip to content

Commit 58e94dd

Browse files
committed
Updated build system for platform-specific output, now creates .app bundle on macOS and simple directory on Windows and Linux.
1 parent 740c147 commit 58e94dd

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Podcast Generator.spec

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ exe = EXE(
6464
icon=os.path.join(SPEC_DIR, 'podcast.ico') # Icon for Windows
6565
)
6666

67-
# --- macOS App Bundle ---
68-
# This section is specific to macOS and creates the .app bundle.
67+
# --- Platform-specific output ---
6968
if sys.platform == 'darwin':
69+
# On macOS, we create a .app bundle.
7070
coll = COLLECT(exe, a.binaries, a.zipfiles, a.datas, strip=False, upx=True, upx_exclude=[], name='Podcast Generator')
7171
app = BUNDLE(
7272
coll,
@@ -80,4 +80,16 @@ if sys.platform == 'darwin':
8080
'CFBundleVersion': version_str,
8181
'NSHighResolutionCapable': 'True'
8282
}
83+
)
84+
else:
85+
# On Windows and Linux, we collect the files into a simple directory.
86+
coll = COLLECT(
87+
exe,
88+
a.binaries,
89+
a.zipfiles,
90+
a.datas,
91+
strip=False,
92+
upx=True,
93+
upx_exclude=[],
94+
name='Podcast Generator'
8395
)

0 commit comments

Comments
 (0)