Skip to content

Commit 3c7fd49

Browse files
committed
fix(desktop): harden runtime packaging and windows cleanup
1 parent 6f6d45b commit 3c7fd49

4 files changed

Lines changed: 219 additions & 124 deletions

File tree

astrbot/core/utils/pip_installer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import logging
88
import os
99
import re
10+
import shlex
1011
import sys
1112
import threading
1213
from collections import deque
@@ -438,7 +439,9 @@ async def install(
438439
wheel_only: bool = False,
439440
) -> None:
440441
args = ["install"]
441-
pip_install_args = self.pip_install_arg.split() if self.pip_install_arg else []
442+
pip_install_args = (
443+
shlex.split(self.pip_install_arg) if self.pip_install_arg else []
444+
)
442445
requested_requirements: set[str] = set()
443446
if package_name:
444447
args.append(package_name)

desktop/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pnpm --dir desktop install --frozen-lockfile
4040
pnpm --dir desktop run dist:full
4141
```
4242

43-
If you are already developing in this repository, you can directly reuse the local virtual environment as runtime:
43+
If you are already developing in this repository, you can directly reuse the local virtual environment as the runtime:
4444

4545
```bash
4646
uv sync

0 commit comments

Comments
 (0)