5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 22:13:36 +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 ### 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` `sudo apt install libgtk-3-dev libwebkit2gtk-4.0-dev`

View File

@ -33,6 +33,8 @@ const (
Zorin Zorin
// Parrot distribution // Parrot distribution
Parrot Parrot
// Linuxmint distribution
Linuxmint
) )
// DistroInfo contains all the information relating to a linux distribution // DistroInfo contains all the information relating to a linux distribution
@ -107,6 +109,8 @@ func parseOsRelease(osRelease string) *DistroInfo {
result.Distribution = Zorin result.Distribution = Zorin
case "parrot": case "parrot":
result.Distribution = Parrot result.Distribution = Parrot
case "linuxmint":
result.Distribution = Linuxmint
default: default:
result.Distribution = Unknown result.Distribution = Unknown
} }

View File

@ -46,6 +46,15 @@ distributions:
gccversioncommand: *gccdumpversion gccversioncommand: *gccdumpversion
programs: *debiandefaultprograms programs: *debiandefaultprograms
libraries: *debiandefaultlibraries libraries: *debiandefaultlibraries
linuxmint:
id: linuxmint
releases:
default:
version: default
name: Linuxmint
gccversioncommand: *gccdumpversion
programs: *debiandefaultprograms
libraries: *debiandefaultlibraries
centos: centos:
id: centos id: centos
releases: releases:
@ -119,4 +128,4 @@ distributions:
- name: pkg-config - name: pkg-config
help: Please install using your system's package manager help: Please install using your system's package manager
- name: npm - 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() distroInfo := GetLinuxDistroInfo()
for _, library := range *requiredLibraries { for _, library := range *requiredLibraries {
switch distroInfo.Distribution { switch distroInfo.Distribution {
case Ubuntu, Debian, Zorin, Parrot: case Ubuntu, Debian, Zorin, Parrot, Linuxmint:
installed, err := DpkgInstalled(library.Name) installed, err := DpkgInstalled(library.Name)
if err != nil { if err != nil {
return false, err return false, err