fix: 加固退出清理

退出应用时终止后台 进程
移除运行时动态安装 Python 依赖
This commit is contained in:
Wxw-Gu committed 2026-08-21 15:37:01 +08:00
1 parent 313d0afff7
commit 17e3b51629
6 files changed
+60 -62

No files matched your search

@@ -265,27 +265,6 @@ export class PersonalWechatRuntimeManager {
addModifiedWorkNotice(script)
await chmod(executable, 0o755)
const pythonPackages = join(stagedDirectory, 'python')
await mkdir(pythonPackages, { recursive: true })
try {
await execFileAsync('/usr/bin/env', [
'python3',
'-m',
'pip',
'install',
'--disable-pip-version-check',
'--no-compile',
'--target',
pythonPackages,
'pilk==0.2.4'
])
} catch (error) {
console.warn(
'[PersonalWechatRuntime] pilk 安装失败,将使用 OneBot 内置的 Go SILK 编码器:',
error
)
}
for (const required of [
executable,
script,