refactor: refork tail module

This commit is contained in:
2026-10-22 12:04:40 +03:00
parent a421d56ec1
commit 84d905dbb3
12 changed files with 1047 additions and 2036 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import through from "through2";
import { Env } from "../common/env";
import exec from "../common/exec";
import { System } from "../common/system";
import { StringWritable } from "../common/tail";
import { HandlerWriter } from "../common/tail";
import { Downloader } from "../core/download";
import { Sdk } from "../core/sdk";
import { Command } from "../run/command";
@@ -223,7 +223,7 @@ export class Android extends Sdk {
const command = new Command(cmd).exec();
this.push(command);
command.contents.pipe(
new StringWritable((line) => {
new HandlerWriter((line: string) => {
if (line.includes("SDL") && (line.includes("onDestroy()") || line.includes("onStop()"))) {
callback();
throw "Exit"; // ToDo: