From d92d49254bec9231b4e981da61eed0c48d467a77 Mon Sep 17 00:00:00 2001 From: Eric Ratliff Date: Sun, 25 Jan 2026 16:09:17 -0600 Subject: [PATCH] Supporting colors on Windows and fixed Android bug. Fixed some bugs on Windows release. --- src/main.rs | 4 ++++ src/sdk/android.rs | 14 ++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 43d44f1..08e9dac 100644 --- a/src/main.rs +++ b/src/main.rs @@ -87,6 +87,10 @@ enum SdkCommands { } fn main() -> Result<()> { + // Enable colors on Windows + #[cfg(windows)] + colored::control::set_virtual_terminal(true).ok(); + let cli = Cli::parse(); print_banner(); diff --git a/src/sdk/android.rs b/src/sdk/android.rs index e911da7..495947d 100644 --- a/src/sdk/android.rs +++ b/src/sdk/android.rs @@ -130,12 +130,22 @@ fn run_sdkmanager(sdkmanager: &Path, sdk_root: &Path) -> Result<()> { pub fn verify(sdk_path: &Path) -> Result<()> { if !sdk_path.exists() { - anyhow::bail!("Android SDK not found at: {}", sdk_path.display()); + anyhow::bail!( + "Android SDK not found at: {}\n\ + Run 'weevil sdk install' to download it automatically,\n\ + or install manually from: https://developer.android.com/studio#command-tools", + sdk_path.display() + ); } let platform_tools = sdk_path.join("platform-tools"); if !platform_tools.exists() { - anyhow::bail!("Android SDK incomplete: platform-tools not found"); + anyhow::bail!( + "Android SDK incomplete: platform-tools not found\n\ + Expected at: {}\n\ + Run 'weevil sdk install' to complete the installation", + platform_tools.display() + ); } Ok(())