mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-10-03 17:15:19 -07:00
Make actool failure non-fatal in build.rs — allows building without full Xcode
This commit is contained in:
committed by
capy-ai-staging[bot]
parent
dd8ab5cb20
commit
c31703a8c4
@@ -68,16 +68,21 @@ fn main() {
|
|||||||
match output {
|
match output {
|
||||||
Ok(output) => {
|
Ok(output) => {
|
||||||
if !output.status.success() {
|
if !output.status.success() {
|
||||||
eprintln!("actool stderr: {}", String::from_utf8_lossy(&output.stderr));
|
println!(
|
||||||
eprintln!("actool stdout: {}", String::from_utf8_lossy(&output.stdout));
|
"cargo:warning=actool failed (requires full Xcode, not just CLT) — \
|
||||||
panic!("actool failed to compile icon");
|
stub files will be used. stderr: {}",
|
||||||
}
|
String::from_utf8_lossy(&output.stderr).trim()
|
||||||
|
);
|
||||||
|
} else {
|
||||||
println!("Successfully compiled icon to {}", gen_dir);
|
println!("Successfully compiled icon to {}", gen_dir);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
eprintln!("Failed to execute xcrun actool: {}", e);
|
println!(
|
||||||
eprintln!("Make sure you have Xcode Command Line Tools installed");
|
"cargo:warning=xcrun actool not available ({e}) — \
|
||||||
panic!("Icon compilation failed");
|
install Xcode from the App Store for Liquid Glass icons. \
|
||||||
|
Stub files will be used for dev builds."
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user