mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-06-28 14:54:45 +08:00
下载管理器
This commit is contained in:
@ -251,4 +251,10 @@ foreach ($adapter in $adapterMemory) {
|
||||
.padLeft(hexDigits, '0')
|
||||
.toUpperCase();
|
||||
}
|
||||
|
||||
static Future openDir(path) async {
|
||||
dPrint("SystemHelper.openDir path === $path");
|
||||
await Process.run(
|
||||
SystemHelper.powershellPath, ["explorer.exe", "/select,\"$path\""]);
|
||||
}
|
||||
}
|
||||
|
@ -62,12 +62,13 @@ class Aria2cManager {
|
||||
"--save-session=${sessionFile.absolute.path.trim()}",
|
||||
"--save-session-interval=60",
|
||||
"--file-allocation=trunc",
|
||||
// TODO for debug
|
||||
"--max-overall-download-limit=100k"
|
||||
],
|
||||
workingDirectory: _aria2cDir,
|
||||
runInShell: false);
|
||||
workingDirectory: _aria2cDir);
|
||||
p.stdout.transform(utf8.decoder).listen((event) {
|
||||
if (event.trim().isEmpty) return;
|
||||
dPrint("[aria2c]: $event");
|
||||
dPrint("[aria2c]: ${event.trim()}");
|
||||
if (event.contains("IPv4 RPC: listening on TCP port")) {
|
||||
_isDaemonRunning = true;
|
||||
aria2c;
|
||||
|
Reference in New Issue
Block a user