Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
b22df85891
commit
6499e59718
@ -15,18 +15,39 @@ fn main() {
|
|||||||
}
|
}
|
||||||
Some("fixtures") => {
|
Some("fixtures") => {
|
||||||
println!("fixtures/");
|
println!("fixtures/");
|
||||||
println!(" markdown/sample.md — all block types (heading, paragraph, list, table, code, quote, hr)");
|
println!(" markdown/sample.md — all block types");
|
||||||
println!(" text/sample.txt — multi-paragraph plain text");
|
println!(" text/sample.txt — multi-paragraph plain text");
|
||||||
println!(" images/test-red.png — 1×1 red pixel PNG");
|
println!(" images/test-red.png — 1×1 red pixel PNG");
|
||||||
}
|
}
|
||||||
|
Some("verify-ios") => {
|
||||||
|
let root = project_root();
|
||||||
|
let xcframework = root.join("bindings/ios/ZxDocumentRuntime.xcframework");
|
||||||
|
if !xcframework.exists() {
|
||||||
|
eprintln!("ERROR: XCFramework not found at {}", xcframework.display());
|
||||||
|
std::process::exit(1);
|
||||||
|
}
|
||||||
|
let binding = root.join("bindings/ios/generated/zx_document.swift");
|
||||||
|
if !binding.exists() {
|
||||||
|
eprintln!("ERROR: Swift binding not found at {}", binding.display());
|
||||||
|
std::process::exit(1);
|
||||||
|
}
|
||||||
|
let header = root.join("bindings/ios/generated/zx_documentFFI.h");
|
||||||
|
if !header.exists() {
|
||||||
|
eprintln!("ERROR: header not found at {}", header.display());
|
||||||
|
std::process::exit(1);
|
||||||
|
}
|
||||||
|
println!("✅ XCFramework: {}", xcframework.display());
|
||||||
|
println!("✅ Swift binding: {}", binding.display());
|
||||||
|
println!("✅ Header: {}", header.display());
|
||||||
|
println!("✅ verify-ios passed");
|
||||||
|
}
|
||||||
_ => {
|
_ => {
|
||||||
println!("zhixi-document-runtime xtask");
|
println!("zhixi-document-runtime xtask");
|
||||||
println!();
|
println!();
|
||||||
println!("Usage: cargo run -p xtask -- <command>");
|
|
||||||
println!();
|
|
||||||
println!("Commands:");
|
println!("Commands:");
|
||||||
println!(" test Run all Rust tests (cargo test)");
|
println!(" test Run all Rust tests");
|
||||||
println!(" build-ios Build iOS XCFramework + Swift bindings");
|
println!(" build-ios Build iOS XCFramework + Swift bindings");
|
||||||
|
println!(" verify-ios Verify XCFramework/binding/header exist");
|
||||||
println!(" fixtures List available fixture files");
|
println!(" fixtures List available fixture files");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user