chore: 迁移项目路径 C:\NeoZQYY → C:\Project\NeoZQYY

开发环境从旧虚拟机 (DESKTOP-KGB0K5G) 迁移到新机器 (DESKTOP-D676QDA),
项目目录从 C:\NeoZQYY 变更为 C:\Project\NeoZQYY,
批量替换 126 个文件中的绝对路径引用。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Neo
2026-04-10 06:45:29 +08:00
parent f9b1039970
commit 66c9ae8738
126 changed files with 4154 additions and 4127 deletions

View File

@@ -13,7 +13,7 @@ def run(cmd: str, retries: int = 3, delay: float = 2.0) -> bool:
print(f" [{attempt}/{retries}] {cmd}")
result = subprocess.run(
cmd, shell=True, capture_output=True, text=True,
cwd=r"C:\NeoZQYY", encoding="utf-8", errors="replace",
cwd=r"C:\Project\NeoZQYY", encoding="utf-8", errors="replace",
)
if result.returncode == 0:
if result.stdout.strip():
@@ -49,7 +49,7 @@ def main():
# 获取 dev 的 HEAD commit
result = subprocess.run(
"git rev-parse dev", shell=True, capture_output=True, text=True,
cwd=r"C:\NeoZQYY", encoding="utf-8",
cwd=r"C:\Project\NeoZQYY", encoding="utf-8",
)
if result.returncode != 0:
print("无法获取 dev 的 HEAD退出")
@@ -71,7 +71,7 @@ def main():
# 恢复 stash如果有
stash_result = subprocess.run(
"git stash list", shell=True, capture_output=True, text=True,
cwd=r"C:\NeoZQYY", encoding="utf-8",
cwd=r"C:\Project\NeoZQYY", encoding="utf-8",
)
if stash_result.stdout.strip():
print("恢复 stash…")