From 3ee10fbaf519edf85b5b224a59886a6ad45cfe8e Mon Sep 17 00:00:00 2001
From: zw <12345678>
Date: Thu, 28 Aug 2025 20:01:01 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E8=BE=93?=
=?UTF-8?q?=E5=87=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/workspace.xml | 9 +++------
Utils/DevDiskImageDeployer.py | 12 ------------
2 files changed, 3 insertions(+), 18 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index fe82f53..6eaf8ac 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,10 +4,7 @@
-
-
-
-
+
@@ -167,7 +164,7 @@
-
+
@@ -192,7 +189,7 @@
-
+
\ No newline at end of file
diff --git a/Utils/DevDiskImageDeployer.py b/Utils/DevDiskImageDeployer.py
index 2491d4f..5ad8114 100644
--- a/Utils/DevDiskImageDeployer.py
+++ b/Utils/DevDiskImageDeployer.py
@@ -84,26 +84,14 @@ class DevDiskImageDeployer:
def deploy_all(self):
candidates = list(self._iter_version_dirs(self._src_dir))
- if self.verbose:
- if not candidates:
- print("[WARN] 未发现任何版本目录(仅匹配 15 / 15.6 / 16.7 / 16.7.1 这种名字)")
- else:
- print("[INFO] 发现版本目录:")
- for c in candidates:
- print(f" - {c.name}")
-
copied = skipped = 0
for ver_dir in candidates:
dst = self._cache_dir / ver_dir.name
if dst.exists() and not self.overwrite:
- if self.verbose:
- print(f"[SKIP] 已存在:{dst}")
skipped += 1
continue
if dst.exists() and self.overwrite:
- if self.verbose:
- print(f"[INFO] 覆盖模式,删除:{dst}")
if not self.dry_run:
shutil.rmtree(dst)