Merge pull request #736 from kamszyc/patch-1
Add Linux Mint 18 case to switch statement
This commit is contained in:
Коммит
ea83d030b5
|
@ -93,9 +93,17 @@ export function getCurrentPlatform() {
|
|||
return Platform.Ubuntu16;
|
||||
}
|
||||
|
||||
break;
|
||||
case 'linuxmint':
|
||||
const lmVersionId = getValue("VERSION_ID");
|
||||
if (lmVersionId.startsWith("18")) {
|
||||
// Linux Mint 18 is binary compatible with Ubuntu 16.04
|
||||
return Platform.Ubuntu16;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return Platform.Unknown;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче