Skip to content

The only downloader you need. 下载器的集大成者。

fix(updater): extractDmg 保留 symlink

XiaoYouChRb9812c13bb56
diff --git a/app/services/update_service.py b/app/services/update_service.py
index f4c039c9..b74d80d1 100644
--- a/app/services/update_service.py
+++ b/app/services/update_service.py
@@ -64,7 +64,7 @@ async def extractDmg(dmgPath: Path, targetDir: Path) -> None:
if not apps:
raise RuntimeError("DMG 中未找到 .app")
- await asyncio.to_thread(shutil.copytree, apps[0], targetDir)
+ await asyncio.to_thread(shutil.copytree, apps[0], targetDir, symlinks=True)
finally:
await asyncio.create_subprocess_exec(
"hdiutil", "detach", str(mountPoint), "-quiet",