mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
Hack publish parameter for snap
This commit is contained in:
parent
6d32a48756
commit
2991e87187
@ -57,6 +57,12 @@ async function pkg(relConfigPath) {
|
||||
? process.env.BUILD_TARGETS.split(',')
|
||||
: 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({
|
||||
config,
|
||||
[targetPlatform]: target,
|
||||
|
Loading…
Reference in New Issue
Block a user