回退 dev:all Tauri 时序控制
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 2m1s
Project CI / Backend tests (pull_request) Failing after 23s
Project CI / AI game creator shell Rust crates (pull_request) Successful in 1m22s
Project CI / Frontend tests (pull_request) Successful in 2m8s
Project CI / Repository checks (pull_request) Failing after 15s
Project CI / AI game creator shell web tests (pull_request) Successful in 1m42s
Project CI / Native shell tests (pull_request) Successful in 5m44s
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Successful in 12m2s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Successful in 11m31s
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 2m1s
Project CI / Backend tests (pull_request) Failing after 23s
Project CI / AI game creator shell Rust crates (pull_request) Successful in 1m22s
Project CI / Frontend tests (pull_request) Successful in 2m8s
Project CI / Repository checks (pull_request) Failing after 15s
Project CI / AI game creator shell web tests (pull_request) Successful in 1m42s
Project CI / Native shell tests (pull_request) Successful in 5m44s
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Successful in 12m2s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Successful in 11m31s
保留无引号启动摘要表。 移除 Tauri 输出捕获、就绪标记和额外等待逻辑。 恢复启动器原有输出与启动时序说明。
This commit is contained in:
@@ -568,7 +568,7 @@ function spawnChild(command, args, options, spawnImpl = spawn) {
|
||||
// POSIX 下让每个长驻服务拥有独立进程组,退出时可以连同 npm、
|
||||
// Node、Cargo 及其子进程一起清理,避免残留订阅任务持续刷日志。
|
||||
detached: isPosix,
|
||||
stdio: options.stdio ?? 'inherit',
|
||||
stdio: 'inherit',
|
||||
});
|
||||
const lifecycle = {
|
||||
failure: null,
|
||||
|
||||
@@ -33,7 +33,6 @@ const tauriCliPath = resolve(repoRoot, 'node_modules/@tauri-apps/cli/tauri.js');
|
||||
const AGC_DESIGN_DEBUG_ENV = 'GENARRATIVE_AGC_DESIGN_DEBUG';
|
||||
const designDebugEnabled =
|
||||
process.env[AGC_DESIGN_DEBUG_ENV]?.trim() === '0' ? '0' : '1';
|
||||
const tauriDevReadyMarker = '[ai-game-creator-shell] Tauri DevCommand 已启动';
|
||||
|
||||
function buildTauriArguments(argv, devUrl = readAgcDevEndpoint().url) {
|
||||
const args = [...argv];
|
||||
@@ -104,27 +103,11 @@ function prepareBundledResourcesBeforeTauri(
|
||||
}
|
||||
|
||||
function spawnTauriCli(argv, { env = process.env } = {}) {
|
||||
const child = spawnChild(process.execPath, [tauriCliPath, ...argv], {
|
||||
return spawnChild(process.execPath, [tauriCliPath, ...argv], {
|
||||
cwd: appRoot,
|
||||
env,
|
||||
shell: false,
|
||||
stdio: ['inherit', 'pipe', 'pipe'],
|
||||
});
|
||||
let output = '';
|
||||
let announced = false;
|
||||
const forwardOutput = (stream, target) => {
|
||||
stream?.on('data', (chunk) => {
|
||||
target.write(chunk);
|
||||
output = `${output}${chunk.toString()}`.slice(-4096);
|
||||
if (!announced && output.includes('Running DevCommand')) {
|
||||
announced = true;
|
||||
console.log(tauriDevReadyMarker);
|
||||
}
|
||||
});
|
||||
};
|
||||
forwardOutput(child.stdout, process.stdout);
|
||||
forwardOutput(child.stderr, process.stderr);
|
||||
return child;
|
||||
}
|
||||
|
||||
/// Tauri dev 的 Cargo 直接继承启动器环境,用户级 / 仓库级 Cargo 配置里的
|
||||
|
||||
Reference in New Issue
Block a user