Skip to content

Commit

Permalink
fix(linux): Linux icon is not set if path is not explicitly defined i…
Browse files Browse the repository at this point in the history
…n config (#5385)
  • Loading branch information
quanglam2807 authored Nov 28, 2020
1 parent 2801de7 commit 9fd950b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/app-builder-lib/src/targets/LinuxTargetHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ export class LinuxTargetHelper {
sources.push(icnsPath)
}

// if no explicit sources are defined, default to buildResources directory
if (sources.length < 1) {
sources.push('./')
}

// need to put here and not as default because need to resolve image size
const result = await packager.resolveIcon(sources, asArray(packager.getDefaultFrameworkIcon()), "set")
this.maxIconPath = result[result.length - 1].file
Expand Down

0 comments on commit 9fd950b

Please sign in to comment.