Skip to content

Commit 9dbc789

Browse files
committed
feat(mac): allow build for pull requests / code sign artifacts
Close #1524
1 parent 23f0b37 commit 9dbc789

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/electron-builder/src/macPackager.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,9 @@ export default class MacPackager extends PlatformPackager<MacOptions> {
115115
warn("macOS application code signing is supported only on macOS, skipping.")
116116
return
117117
}
118-
if (isPullRequest()) {
119-
log("Current build is a part of pull request, code signing will be skipped")
118+
if (process.env.CSC_FOR_PULL_REQUEST !== "true" && isPullRequest()) {
119+
// https://github.com/electron-userland/electron-builder/issues/1524
120+
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.")
120121
return
121122
}
122123

0 commit comments

Comments
 (0)