Skip to content

Commit

Permalink
refactor(packagers): Resolve iconPath relative to basedir
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Aug 26, 2022
1 parent d060fc9 commit 977f454
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ private void setupPrepare(Distribution distribution, Map<String, Object> props)
Path iconPath = Paths.get(packager.getTemplateDirectory(), "icons",
icon.getWidth() + "x" + icon.getHeight(),
distribution.getExecutable().getName() + "." + iconExt);
iconPath = context.getBasedir().resolve(iconPath);

if (!Files.exists(iconPath)) {
// download
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ private void setupPrepare(Distribution distribution, Map<String, Object> props)
Path iconPath = Paths.get(packager.getTemplateDirectory(), "icons",
icon.getWidth() + "x" + icon.getHeight(),
distribution.getExecutable().getName() + "." + iconExt);
iconPath = context.getBasedir().resolve(iconPath);

if (!Files.exists(iconPath)) {
// download
Expand Down

0 comments on commit 977f454

Please sign in to comment.