Only show auto-updates setting on supported targets

Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2020-12-10 14:05:56 +01:00
parent c32e485f27
commit fe0b45cae6
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ async function getSettingsList(): Promise<Setting[]> {
label: `${platform === 'win32' ? 'Eject' : 'Auto-unmount'} on success`,
},
];
if (!['rpm', 'deb'].includes(packageType)) {
if (['appimage', 'nsis', 'dmg'].includes(packageType)) {
list.push({
name: 'updatesEnabled',
label: 'Auto-updates enabled',

View File

@ -78,7 +78,7 @@ export async function writeConfigFile(
const DEFAULT_SETTINGS: _.Dictionary<any> = {
errorReporting: true,
unmountOnSuccess: true,
updatesEnabled: !_.includes(['rpm', 'deb'], packageJSON.packageType),
updatesEnabled: ['appimage', 'nsis', 'dmg'].includes(packageJSON.packageType),
desktopNotifications: true,
autoBlockmapping: true,
decompressFirst: true,