Hack publish parameter for snap

This commit is contained in:
Gregory Schier 2019-10-17 15:11:00 -04:00
parent 6d32a48756
commit 2991e87187

View File

@ -57,6 +57,12 @@ async function pkg(relConfigPath) {
? process.env.BUILD_TARGETS.split(',') ? process.env.BUILD_TARGETS.split(',')
: config[targetPlatform].target; : config[targetPlatform].target;
// NOTE: This is likely a bug in electron-builder. Always tries to
// publish snap even when set to null.
if (target.length === 0 && target[0] === 'snap') {
config.publish = 'never';
}
return electronBuilder.build({ return electronBuilder.build({
config, config,
[targetPlatform]: target, [targetPlatform]: target,