From 119eb8fdbafa685203340dacbc14225e7b44980f Mon Sep 17 00:00:00 2001 From: ck Date: Tue, 12 Dec 2023 09:48:50 +0800 Subject: [PATCH] chore: fix relative path invalid link ``` dci --export ./ ./xxx.dci # invalid symlink ./1.webp -> 3/36/normal.light/3/1.webp # should be ./1.webp -> ../../normal.light/3/1.webp ``` --- tools/dci/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/dci/main.cpp b/tools/dci/main.cpp index a9de92fb..0bf82254 100644 --- a/tools/dci/main.cpp +++ b/tools/dci/main.cpp @@ -125,7 +125,7 @@ bool exportTo(const QString &dciFile, const QString &targetDir) { return false; QMap pathMap; - if (!copyFilesFromDci(&dci, newDir, "/", pathMap)) + if (!copyFilesFromDci(&dci, QDir(newDir).absolutePath(), "/", pathMap)) return false; // link to real source