From cdc66b556eb68f9a2cf7295959680664345ae00a Mon Sep 17 00:00:00 2001 From: "admin_3.exe" Date: Sat, 10 Aug 2019 03:42:02 +0300 Subject: [PATCH] 188 support distribution linux mint (#189) --- README.md | 2 +- cmd/linux.go | 4 ++++ cmd/linuxdb.yaml | 11 ++++++++++- cmd/system.go | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8ec4a7a5..c0d0d560 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Make sure you have the xcode command line tools installed. This can be done by r ### Linux -#### Debian 9, Ubuntu 18.04, Zorin 15, Parrot 4.7 +#### Debian 9, Ubuntu 18.04, Zorin 15, Parrot 4.7, Linuxmint 19 `sudo apt install libgtk-3-dev libwebkit2gtk-4.0-dev` diff --git a/cmd/linux.go b/cmd/linux.go index c5b22a60..766d68f0 100644 --- a/cmd/linux.go +++ b/cmd/linux.go @@ -33,6 +33,8 @@ const ( Zorin // Parrot distribution Parrot + // Linuxmint distribution + Linuxmint ) // DistroInfo contains all the information relating to a linux distribution @@ -107,6 +109,8 @@ func parseOsRelease(osRelease string) *DistroInfo { result.Distribution = Zorin case "parrot": result.Distribution = Parrot + case "linuxmint": + result.Distribution = Linuxmint default: result.Distribution = Unknown } diff --git a/cmd/linuxdb.yaml b/cmd/linuxdb.yaml index d4a857ec..6b6bbd81 100644 --- a/cmd/linuxdb.yaml +++ b/cmd/linuxdb.yaml @@ -46,6 +46,15 @@ distributions: gccversioncommand: *gccdumpversion programs: *debiandefaultprograms libraries: *debiandefaultlibraries + linuxmint: + id: linuxmint + releases: + default: + version: default + name: Linuxmint + gccversioncommand: *gccdumpversion + programs: *debiandefaultprograms + libraries: *debiandefaultlibraries centos: id: centos releases: @@ -119,4 +128,4 @@ distributions: - name: pkg-config help: Please install using your system's package manager - name: npm - help: Please install using your system's package manager + help: Please install using your system's package manager \ No newline at end of file diff --git a/cmd/system.go b/cmd/system.go index c70e7a83..511c6c77 100644 --- a/cmd/system.go +++ b/cmd/system.go @@ -272,7 +272,7 @@ func CheckDependencies(logger *Logger) (bool, error) { distroInfo := GetLinuxDistroInfo() for _, library := range *requiredLibraries { switch distroInfo.Distribution { - case Ubuntu, Debian, Zorin, Parrot: + case Ubuntu, Debian, Zorin, Parrot, Linuxmint: installed, err := DpkgInstalled(library.Name) if err != nil { return false, err