优化分流下载,增加启动器运行检测。

使用内建多线程下载器
This commit is contained in:
2023-10-13 21:58:25 +08:00
parent d2672a7c38
commit b195e57a5c
5 changed files with 213 additions and 44 deletions

View File

@ -93,7 +93,10 @@ class SystemHelper {
static Future<List<String>> getPID(String name) async {
final r = await Process.run("powershell", ["(ps $name).Id"]);
return r.stdout.toString().trim().split("\n");
final str = r.stdout.toString().trim();
dPrint(str);
if (str.isEmpty) return [];
return str.split("\n");
}
static checkAndLaunchRSILauncher(String path) async {