Skip to content

Commit

Permalink
feat(linux): support any icon name
Browse files Browse the repository at this point in the history
Close #1399
  • Loading branch information
develar committed Mar 28, 2017
1 parent 958a7ae commit 5a2631c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/electron-builder/src/targets/LinuxTargetHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ export class LinuxTargetHelper {
// If parseInt encounters a character that is not a numeral in the specified radix,
// it returns the integer value parsed up to that point
try {
const size = parseInt(file!, 10)
let sizeString = file.match(/\d+/)
const size = sizeString == null ? 0 : parseInt(sizeString[0], 10)
if (size > 0) {
const iconPath = `${iconDir}/${file}`
mappings.push([iconPath, `${size}x${size}/apps/${this.packager.executableName}.png`])
Expand Down

0 comments on commit 5a2631c

Please sign in to comment.