Skip to content

Commit

Permalink
feat(mac): allow build for pull requests / code sign artifacts
Browse files Browse the repository at this point in the history
Close #1524
  • Loading branch information
develar committed May 4, 2017
1 parent 23f0b37 commit 9dbc789
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/electron-builder/src/macPackager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@ export default class MacPackager extends PlatformPackager<MacOptions> {
warn("macOS application code signing is supported only on macOS, skipping.")
return
}
if (isPullRequest()) {
log("Current build is a part of pull request, code signing will be skipped")
if (process.env.CSC_FOR_PULL_REQUEST !== "true" && isPullRequest()) {
// /~https://github.com/electron-userland/electron-builder/issues/1524
log("Current build is a part of pull request, code signing will be skipped. Set env CSC_FOR_PULL_REQUEST to true to force code signing.")
return
}

Expand Down

0 comments on commit 9dbc789

Please sign in to comment.