Skip to content

Commit

Permalink
chore: fix relative path invalid link
Browse files Browse the repository at this point in the history
```
 dci --export ./ ./xxx.dci
 # invalid symlink ./1.webp -> 3/36/normal.light/3/1.webp
 # should be       ./1.webp -> ../../normal.light/3/1.webp
```
  • Loading branch information
kegechen committed Dec 13, 2023
1 parent 7eec6f3 commit 744f46f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/dci/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ bool exportTo(const QString &dciFile, const QString &targetDir) {
return false;

QMap<QString, QString> pathMap;
if (!copyFilesFromDci(&dci, newDir, "/", pathMap))
if (!copyFilesFromDci(&dci, QDir(newDir).absolutePath(), "/", pathMap))
return false;

// link to real source
Expand Down

0 comments on commit 744f46f

Please sign in to comment.