-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
72 lines (67 loc) · 1.82 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import sys
from pathlib import Path
from typing import List
import cx_Freeze
__version__ = "1.0.0"
base = None
include_files: List[str] = []
ffmpeg_files: List[str] = ["ffmpeg.exe", "ffprobe.exe"]
if sys.platform == "win32":
base = "Win32GUI"
for file in ffmpeg_files:
if (Path(__file__).parent / file).exists():
include_files.append(file)
includes = ["tkinter"]
excludes = ["matplotlib", "sqlite3"]
packages = [
"httpx",
"http",
"anyio",
"traceback",
"pydub",
"asyncio",
"traceback",
"json",
"re",
"typing",
"pathlib",
"ratelimiter",
"distutils",
]
cx_Freeze.setup(
name="TranscribeArabic",
description="تحويل الملفات الصوتية إلى نصوص",
version=__version__,
executables=[
cx_Freeze.Executable(
"wit_transcriber/gui/app.py",
base=base,
icon="assets/chat-centered-text-duotone.ico",
shortcut_name="Transcribe Arabic",
shortcut_dir="DesktopFolder",
)
],
options={
"build_exe": {
"packages": packages,
"includes": includes,
"include_files": include_files,
"include_msvcr": True,
"excludes": excludes,
},
"bdist_msi": {
"upgrade_code": "{00EF338F-794D-3AB8-8CD6-2B0AB7541021}",
"add_to_path": False,
"initial_target_dir": r"[ProgramFilesFolder]\TranscribeArabic",
"install_icon": "assets/chat-centered-text-duotone.ico",
},
"bdist_mac": {
"iconfile": "assets/chat-centered-text-duotone.icns",
"bundle_name": "TranscribeArabic",
},
"bdist_dmg": {
"volume_label": "Install Transcribe Arabic",
"applications_shortcut": True,
},
},
)