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:
@@ -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…")
|
||||
|
||||
Reference in New Issue
Block a user