fix: 修复插件卸载后重启失败问题,增加安装进度日志
This commit is contained in:
@@ -18,7 +18,7 @@ BUILD_PATH = OUTPUT_PATH / f'{platform.system().lower()}-{platform.machine().low
|
||||
|
||||
def build_main():
|
||||
nuitka_cmd = [
|
||||
'python',
|
||||
sys.executable,
|
||||
'-m',
|
||||
'nuitka',
|
||||
'--standalone',
|
||||
@@ -26,6 +26,11 @@ def build_main():
|
||||
'--show-progress',
|
||||
'--plugin-enable=pyside6',
|
||||
'--include-module=qt_material',
|
||||
# 把插件 SDK 的 runtime_hook 编进 exe,启动时把 plugins/*/ 加进 sys.path。
|
||||
# Nuitka 无 --runtime-hook 选项,用 --include-module + main.py 顶部 import 替代。
|
||||
# 宿主不需要预知插件依赖哪些 stdlib——纯 Python 依赖编进 mil.pyd,
|
||||
# C 扩展由插件自带,runtime_hook 把 plugins/*/ 加进 sys.path 后能加载。
|
||||
'--include-module=runtime_hook',
|
||||
f"--include-data-dir={RESOURCES_PATH}=resources",
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user