This commit is contained in:
parent
f75cceefd4
commit
0de9beec8e
|
|
@ -3,25 +3,31 @@ from PyInstaller.utils.hooks import collect_all
|
||||||
|
|
||||||
datas = []
|
datas = []
|
||||||
binaries = []
|
binaries = []
|
||||||
hiddenimports = ['pandas', 'numpy', 'yfinance', 'requests', 'lxml', 'lxml.etree', 'html5lib', 'bs4', 'appdirs', 'platformdirs', 'tkinter', 'tkinter.ttk', 'tkinter.messagebox', 'screener_gui', 'stock_screener', 'matplotlib', 'matplotlib.backends.backend_tkagg', 'matplotlib.figure', 'matplotlib.dates', 'matplotlib.ticker', 'winreg', 'ssl', '_ssl', 'certifi', 'charset_normalizer', 'hwid', 'license_check', 'activation_dialog', 'updater', 'vaderSentiment', 'vaderSentiment.vaderSentiment', 'pyarmor_runtime_000000']
|
hiddenimports = [
|
||||||
tmp_ret = collect_all('pandas')
|
'pandas', 'numpy', 'yfinance', 'requests',
|
||||||
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
'lxml', 'lxml.etree', 'html5lib', 'bs4',
|
||||||
tmp_ret = collect_all('numpy')
|
'appdirs', 'platformdirs',
|
||||||
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
'tkinter', 'tkinter.ttk', 'tkinter.messagebox',
|
||||||
tmp_ret = collect_all('yfinance')
|
'screener_gui', 'stock_screener',
|
||||||
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
'matplotlib', 'matplotlib.backends.backend_qtagg',
|
||||||
tmp_ret = collect_all('matplotlib')
|
'matplotlib.backends.backend_tkagg',
|
||||||
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
'matplotlib.figure', 'matplotlib.dates', 'matplotlib.ticker',
|
||||||
tmp_ret = collect_all('requests')
|
'winreg', 'ssl', '_ssl', 'certifi', 'charset_normalizer',
|
||||||
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
'hwid', 'license_check', 'activation_dialog', 'updater',
|
||||||
tmp_ret = collect_all('certifi')
|
'vaderSentiment', 'vaderSentiment.vaderSentiment',
|
||||||
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
'pyarmor_runtime_000000',
|
||||||
tmp_ret = collect_all('charset_normalizer')
|
'PySide6', 'PySide6.QtCore', 'PySide6.QtWidgets', 'PySide6.QtGui',
|
||||||
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
'PySide6.QtCharts', 'PySide6.QtNetwork',
|
||||||
tmp_ret = collect_all('vaderSentiment')
|
'shiboken6',
|
||||||
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
]
|
||||||
tmp_ret = collect_all('tzdata')
|
|
||||||
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
for pkg in ('pandas', 'numpy', 'yfinance', 'matplotlib', 'requests',
|
||||||
|
'certifi', 'charset_normalizer', 'vaderSentiment', 'tzdata',
|
||||||
|
'PySide6'):
|
||||||
|
tmp_ret = collect_all(pkg)
|
||||||
|
datas += tmp_ret[0]
|
||||||
|
binaries += tmp_ret[1]
|
||||||
|
hiddenimports += tmp_ret[2]
|
||||||
|
|
||||||
|
|
||||||
a = Analysis(
|
a = Analysis(
|
||||||
|
|
@ -58,5 +64,5 @@ exe = EXE(
|
||||||
target_arch=None,
|
target_arch=None,
|
||||||
codesign_identity=None,
|
codesign_identity=None,
|
||||||
entitlements_file=None,
|
entitlements_file=None,
|
||||||
uac_admin=True, # embed UAC manifest: always run as Administrator
|
uac_admin=True,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ import requests
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Current app version — kept in sync by push_update.py before each build.
|
# Current app version — kept in sync by push_update.py before each build.
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
APP_VERSION = "1.4.2"
|
APP_VERSION = "1.4.3"
|
||||||
|
|
||||||
|
|
||||||
def _exe_dir() -> str:
|
def _exe_dir() -> str:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue