mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-17 16:26: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`,
|
label: `${platform === 'win32' ? 'Eject' : 'Auto-unmount'} on success`,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
if (!['rpm', 'deb'].includes(packageType)) {
|
if (['appimage', 'nsis', 'dmg'].includes(packageType)) {
|
||||||
list.push({
|
list.push({
|
||||||
name: 'updatesEnabled',
|
name: 'updatesEnabled',
|
||||||
label: 'Auto-updates enabled',
|
label: 'Auto-updates enabled',
|
||||||
|
@ -78,7 +78,7 @@ export async function writeConfigFile(
|
|||||||
const DEFAULT_SETTINGS: _.Dictionary<any> = {
|
const DEFAULT_SETTINGS: _.Dictionary<any> = {
|
||||||
errorReporting: true,
|
errorReporting: true,
|
||||||
unmountOnSuccess: true,
|
unmountOnSuccess: true,
|
||||||
updatesEnabled: !_.includes(['rpm', 'deb'], packageJSON.packageType),
|
updatesEnabled: ['appimage', 'nsis', 'dmg'].includes(packageJSON.packageType),
|
||||||
desktopNotifications: true,
|
desktopNotifications: true,
|
||||||
autoBlockmapping: true,
|
autoBlockmapping: true,
|
||||||
decompressFirst: true,
|
decompressFirst: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user