Skip to content

Commit

Permalink
Update package-server.spec
Browse files Browse the repository at this point in the history
  • Loading branch information
tmoroney committed Dec 8, 2024
1 parent 7b442e6 commit d4a78f2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Transcription-Server/package-server.spec
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ if platform.system() == 'Windows':
ffmpeg_dir = 'ffmpeg_bin_win'
version_file = 'version-win.txt'
plist = None
enable_upx = True
enable_stripping = True
else:
hiddenimports += collect_submodules('mlx')
hiddenimports += collect_submodules('mlx_whisper')
Expand All @@ -58,6 +60,8 @@ else:
ffmpeg_dir = 'ffmpeg_bin_mac'
version_file = None
plist = 'Info.plist'
enable_upx = False
enable_stripping = False

# Include other packages
hiddenimports += collect_submodules('stable_whisper')
Expand Down Expand Up @@ -96,8 +100,8 @@ exe = EXE(
exclude_binaries=True, # Exclude unnecessary binaries from EXE
name='transcription-server',
debug=False, # Ensure debug is off
strip=True, # Strip unnecessary symbols
upx=True,
strip=enable_stripping,
upx=enable_upx,
console=True, # Use a windowed app if applicable
disable_windowed_traceback=True,
version=version_file, # Add version file for Windows
Expand All @@ -108,8 +112,8 @@ coll = COLLECT(
a.binaries, # Include binaries here
a.zipfiles,
a.datas, # Include data files
strip=True,
upx=True,
strip=enable_stripping,
upx=enable_upx,
upx_exclude=[],
name='Transcription-Server',
)

0 comments on commit d4a78f2

Please sign in to comment.