refactor(build): 统一本地与 CI 构建入口及平台发布工具 (#9)
Gitea CI / Check code and tests (push) Successful in 7m38s
Gitea CI / Build Android APK (push) Successful in 6m20s
Gitea CI / Audit and package Windows x64 (push) Canceled after 0s
Gitea CI / Assemble and validate CI artifacts (push) Canceled after 0s
Gitea CI / Gitea CI passed (push) Canceled after 0s
Gitea CI / Build Windows x64 app (push) Canceled after 14m42s
Gitea CI / Check code and tests (push) Successful in 7m38s
Gitea CI / Build Android APK (push) Successful in 6m20s
Gitea CI / Audit and package Windows x64 (push) Canceled after 0s
Gitea CI / Assemble and validate CI artifacts (push) Canceled after 0s
Gitea CI / Gitea CI passed (push) Canceled after 0s
Gitea CI / Build Windows x64 app (push) Canceled after 14m42s
This commit was merged in pull request #9.
This commit is contained in:
1 parent
a13a54d5ec
commit
4a759d81a6
61 files changed
+1913
-388
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import 'support/creation_names.dart';
|
||||
import 'support/dart_executable.dart';
|
||||
|
||||
import 'package:cutdex/app/editor_theme.dart';
|
||||
import 'package:cutdex/l10n/app_localizations.dart';
|
||||
@@ -1790,12 +1791,14 @@ void main() {
|
||||
);
|
||||
addTearDown(bridge.close);
|
||||
final process = await Process.start(
|
||||
'dart',
|
||||
['run', 'tool/mcp_stdio.dart'],
|
||||
runInShell: Platform.isWindows,
|
||||
flutterTestDartExecutable(),
|
||||
['tool/mcp_stdio.dart'],
|
||||
environment: {
|
||||
'CUTDEX_MCP_PORT': '${bridge.port}',
|
||||
'CUTDEX_MCP_TOKEN': token,
|
||||
// This standard-library launcher must not need a Dart/Flutter wrapper
|
||||
// on PATH, or compete with parallel generators for startup/pub locks.
|
||||
'PATH': root.path,
|
||||
},
|
||||
);
|
||||
addTearDown(process.kill);
|
||||
@@ -1809,13 +1812,19 @@ void main() {
|
||||
}),
|
||||
),
|
||||
);
|
||||
final response = jsonDecode(
|
||||
await process.stdout
|
||||
final String responseLine;
|
||||
try {
|
||||
responseLine = await process.stdout
|
||||
.transform(utf8.decoder)
|
||||
.transform(const LineSplitter())
|
||||
.first
|
||||
.timeout(const Duration(seconds: 15)),
|
||||
) as Map;
|
||||
.timeout(const Duration(seconds: 15));
|
||||
} on TimeoutException {
|
||||
process.kill();
|
||||
await process.exitCode.timeout(const Duration(seconds: 5));
|
||||
fail('MCP launcher did not respond within 15 seconds.\n${await errors}');
|
||||
}
|
||||
final response = jsonDecode(responseLine) as Map;
|
||||
expect((response['result'] as Map)['isError'], false, reason: '$response');
|
||||
expect(transform().x, closeTo(320 / session.canvas.width, 1e-9));
|
||||
await process.stdin.close();
|
||||
|
||||
Reference in new issue
Block a user