Skip to content

Commit

Permalink
Detect Mac installer
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierfacq committed Oct 2, 2023
1 parent 67062cb commit 8d03e30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const getArtifactAndFormattedName = (entry) => {
return { artifact: 'sources', name: 'sources' }
} else if (tokens.length >= 5) {
const artifact = tokens[0].slice(tokens[0].indexOf('-') + 1)
const name = entry.name.endsWith('.msi')
const name = (entry.name.endsWith('.msi') || entry.name.endsWith('.pkg'))
? `${capitalizeFirst(tokens[2])} (${capitalizeFirst(tokens[1])} / installer)`
: `${capitalizeFirst(tokens[2])} (${capitalizeFirst(tokens[1])})`

Expand Down

0 comments on commit 8d03e30

Please sign in to comment.