5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 10:39:50 +08:00

188 support distribution linux mint (#189)

This commit is contained in:
admin_3.exe 2019-08-10 03:42:02 +03:00 committed by Lea Anthony
parent 3ff16322c2
commit cdc66b556e
4 changed files with 16 additions and 3 deletions

View File

@ -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`

View File

@ -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
}

View File

@ -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

View File

@ -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