Skip to content

Commit

Permalink
feat: author macro
Browse files Browse the repository at this point in the history
Close #3006
  • Loading branch information
develar committed Jul 1, 2018
1 parent 2263cb8 commit 7ed7289
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/electron-builder-lib/src/util/macroExpander.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ export function expandMacro(pattern: string, arch: string | null | undefined, ap
}
return arch

case "author":
const companyName = appInfo.companyName
if (companyName == null) {
throw new InvalidConfigurationError(`cannot expand pattern "${pattern}": author is not specified`, "ERR_ELECTRON_BUILDER_AUTHOR_UNSPECIFIED")
}
return companyName

case "platform":
return process.platform

Expand Down

0 comments on commit 7ed7289

Please sign in to comment.