mirror of
https://github.com/xfgryujk/blivechat.git
synced 2025-01-13 22:00:15 +08:00
GUI插件打包WebView2Loader.dll
This commit is contained in:
parent
175ecdd5a7
commit
a35e0f3607
@ -26,6 +26,14 @@ DATAS = [
|
|||||||
('data/blivechat.ico', 'data'),
|
('data/blivechat.ico', 'data'),
|
||||||
('log/.gitkeep', 'log'),
|
('log/.gitkeep', 'log'),
|
||||||
]
|
]
|
||||||
|
# 动态库
|
||||||
|
BINARIES = []
|
||||||
|
if sys.platform == 'win32':
|
||||||
|
import wx
|
||||||
|
|
||||||
|
# https://docs.wxpython.org/wx.html2.WebView.html#phoenix-title-webview-backend-edge-msw
|
||||||
|
bin_path = os.path.join(os.path.dirname(wx.__file__), 'WebView2Loader.dll')
|
||||||
|
BINARIES.append((bin_path, '.'))
|
||||||
|
|
||||||
block_cipher = None
|
block_cipher = None
|
||||||
|
|
||||||
@ -33,7 +41,7 @@ block_cipher = None
|
|||||||
a = Analysis(
|
a = Analysis(
|
||||||
['main.pyw'],
|
['main.pyw'],
|
||||||
pathex=PYTHONPATH,
|
pathex=PYTHONPATH,
|
||||||
binaries=[],
|
binaries=BINARIES,
|
||||||
datas=DATAS,
|
datas=DATAS,
|
||||||
hiddenimports=[],
|
hiddenimports=[],
|
||||||
hookspath=[],
|
hookspath=[],
|
||||||
|
Loading…
Reference in New Issue
Block a user