mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-16 07:46:31 +00:00
Only show auto-updates setting on supported targets
Change-type: patch
This commit is contained in:
parent
c32e485f27
commit
fe0b45cae6
@ -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',
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user