Read-only mirror of github.com/smbcloudXYZ/smbcloud-ascapi.
Mirrored from https://github.com/smbcloudXYZ/smbcloud-ascapi.git
Synced Nov 25, 09:15 UTC
play: let --dry-run skip the overwrite check
download-universal refused an existing --out before looking at --dry-run, so a dry run failed on a file it would never have written. The refusal now applies only to a real download. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Co-Authored-By: siGit Code v1.7.10 <noreply@sigit.si>
Seto Elkahfi committed
Nov 19, 2026 at 12:43 UTC
8892d749298924ba72d9627b1c455912e5680239
1 file changed
+2
-1
crates/frontend/src/play.rs
+2
-1
@@ -696,7 +696,8 @@ pub async fn download_universal_apk(
696
certificate: Option<&str>,
697
dry_run: bool,
698
) -> Result<UniversalApk, String> {
699
- if out.exists() {
699
+ // A dry run writes nothing, so an existing file is no reason to stop it.
700
+ if !dry_run && out.exists() {
701
return Err(format!("{} exists; not overwriting it", out.display()));
702
}
703
let list = read_generated_apks(client, package, version_code).await?;