Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@ export function getCurrentPlatform() {
case 'ol':
// Oracle Linux is binary compatible with CentOS
return Platform.CentOS;
case 'elementary OS':
const eOSVersionId = getValue("VERSION_ID");
if (eOSVersionId.startsWith("0.3")) {
// Elementary OS 0.3 Freya is binary compatible with Ubuntu 14.04
return Platform.Ubuntu14;
}
else if (eOSVersionId.startsWith("0.4")) {
// Elementary OS 0.4 Loki is binary compatible with Ubuntu 16.04
return Platform.Ubuntu16;
}
}
}

Expand Down