File tree 3 files changed +14
-2
lines changed
3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ async function getReleaseVersion() {
78
78
buildBranch . startsWith ( 'electron-' ) ||
79
79
( buildBranch === 'master' &&
80
80
! process . env . SYSTEM_PULLREQUEST_PULLREQUESTNUMBER ) ) ;
81
+ const SHOULD_SIGN = process . env . SHOULD_SIGN ;
81
82
82
83
console . log (
83
84
`##vso[task.setvariable variable=AppName;isOutput=true]${ getAppName (
@@ -90,6 +91,9 @@ async function getReleaseVersion() {
90
91
console . log (
91
92
`##vso[task.setvariable variable=IsSignedZipBranch;isOutput=true]${ isSignedZipBranch } `
92
93
) ;
94
+ console . log (
95
+ `##vso[task.setvariable variable=SHOULD_SIGN;isOutput=true]${ SHOULD_SIGN } `
96
+ ) ;
93
97
}
94
98
95
99
getReleaseVersion ( ) ;
Original file line number Diff line number Diff line change 47
47
displayName : Run linter
48
48
49
49
- script : |
50
- if [ $IS_RELEASE_BRANCH == "true" ] || [ $IS_SIGNED_ZIP_BRANCH == "true" ]; then
50
+ if [ $SHOULD_SIGN == "true" ] && ([ $ IS_RELEASE_BRANCH == "true" ] || [ $IS_SIGNED_ZIP_BRANCH == "true" ]) ; then
51
51
script/build --no-bootstrap --code-sign --compress-artifacts
52
52
else
53
53
script/build --no-bootstrap --compress-artifacts
Original file line number Diff line number Diff line change @@ -101,11 +101,19 @@ jobs:
101
101
SET SQUIRREL_TEMP=C:\tmp
102
102
IF [%IS_RELEASE_BRANCH%]==[true] (
103
103
ECHO Creating production artifacts for release branch %BUILD_SOURCEBRANCHNAME%
104
- node script\vsts\windows-run.js script\build.cmd --no-bootstrap --code-sign --compress-artifacts --create-windows-installer
104
+ IF [%SHOULD_SIGN%]==[true] (
105
+ node script\vsts\windows-run.js script\build.cmd --no-bootstrap --code-sign --compress-artifacts --create-windows-installer
106
+ ) ELSE (
107
+ node script\vsts\windows-run.js script\build.cmd --no-bootstrap --compress-artifacts --create-windows-installer
108
+ )
105
109
) ELSE (
106
110
IF [%IS_SIGNED_ZIP_BRANCH%]==[true] (
107
111
ECHO Creating signed CI artifacts for branch %BUILD_SOURCEBRANCHNAME%
112
+ IF [%SHOULD_SIGN%]==[true] (
108
113
node script\vsts\windows-run.js script\build.cmd --no-bootstrap --code-sign --compress-artifacts
114
+ ) ELSE (
115
+ node script\vsts\windows-run.js script\build.cmd --no-bootstrap --compress-artifacts
116
+ )
109
117
) ELSE (
110
118
ECHO Pull request build, no code signing will be performed
111
119
node script\vsts\windows-run.js script\build.cmd --no-bootstrap --compress-artifacts
You can’t perform that action at this time.
0 commit comments