Skip to content

Commit 8ffdb65

Browse files
could not abort if unset CSC_LINK or WIN_CSC_LINK.
1 parent 44eee08 commit 8ffdb65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/electron-builder-wrapper.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ const runBuilder = function (targetGroup) {
4747
const shouldStripCSC = (targetGroup === 'appx');
4848
const childEnvironment = shouldStripCSC ? stripCSC(process.env) : process.env;
4949
if ((targetGroup === 'nsis') && !(childEnvironment.CSC_LINK || childEnvironment.WIN_CSC_LINK)) {
50-
throw new Error(`NSIS build requires CSC_LINK or WIN_CSC_LINK`);
50+
// throw new Error(`NSIS build requires CSC_LINK or WIN_CSC_LINK`);
51+
console.error(`NSIS build requires CSC_LINK or WIN_CSC_LINK`);
5152
}
5253
const platformFlag = getPlatformFlag();
5354
const command = `electron-builder ${platformFlag} ${targetGroup}`;

0 commit comments

Comments
 (0)