Skip to content

Commit 9f017b7

Browse files
authored
Merge pull request #8 from smalruby/not_abort_if_unset_CSC_LINK
could not abort if unset CSC_LINK or WIN_CSC_LINK.
2 parents 44eee08 + 8ffdb65 commit 9f017b7

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)