File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 33import sys
44from pathlib import Path
55
6- # ---- Ensure project root is importable ----
7- ROOT_DIR = Path (__file__ ).resolve ().parents [2 ]
6+ ROOT_DIR = Path .cwd ()
87sys .path .insert (0 , str (ROOT_DIR ))
98
10- # ---- Metadata injected by CI ----
9+ # ---- Metadata from extract_metadata.py ----
1110APP_NAME = os .environ ["APP_NAME" ]
1211APP_VERSION = os .environ ["APP_VERSION" ]
1312APP_PUBLISHER = os .environ ["APP_PUBLISHER" ]
1413APP_DESCRIPTION = os .environ ["APP_DESCRIPTION" ]
1514
15+ # ---- Read locked UpgradeCode ----
16+ UPGRADE_CODE = (ROOT_DIR / "build" / "installer" / "upgrade_code.txt" ).read_text ().strip ()
17+
1618base = "Win32GUI" if sys .platform == "win32" else None
1719
1820build_exe_options = {
19- # ONLY real pip packages here
2021 "packages" : [
2122 "PySide6" ,
2223 "yt_dlp" ,
2324 "nltk" ,
2425 "wordcloud" ,
2526 "scrapetube" ,
2627 ],
27- # Local source + data
28+ "excludes" : [ "tkinter" , "tk" , "tcl" ],
2829 "include_files" : [
2930 (ROOT_DIR / "utils" , "utils" ),
3031 (ROOT_DIR / "UI" , "UI" ),
3637}
3738
3839bdist_msi_options = {
39- # DO NOT change once released
40- "upgrade_code" : "{A6F3E7B2-5E0F-4B58-9D9C-STATUBE000001}" ,
40+ "upgrade_code" : UPGRADE_CODE ,
4141 "initial_target_dir" : r"[ProgramFilesFolder]\StaTube" ,
4242 "summary_data" : {
4343 "author" : APP_PUBLISHER ,
You can’t perform that action at this time.
0 commit comments