mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
Compare commits
1 Commits
v1.16.4-pr
...
119---Init
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a17f385749 |
@@ -58,6 +58,8 @@ func GetLinuxDistroInfo() *DistroInfo {
|
||||
result.Distribution = Ubuntu
|
||||
case "Arch", "ManjaroLinux":
|
||||
result.Distribution = Arch
|
||||
default:
|
||||
result.Distribution = Unknown
|
||||
}
|
||||
case "Description":
|
||||
result.Description = value
|
||||
@@ -87,6 +89,8 @@ func GetLinuxDistroInfo() *DistroInfo {
|
||||
result.Distribution = RedHat
|
||||
case "Arch Linux":
|
||||
result.Distribution = Arch
|
||||
default:
|
||||
result.Distribution = Unknown
|
||||
}
|
||||
}
|
||||
return result
|
||||
|
||||
@@ -295,7 +295,6 @@ func CheckDependencies(logger *Logger) (bool, error) {
|
||||
logger.Green("Library '%s' installed.", library.Name)
|
||||
}
|
||||
case RedHat:
|
||||
|
||||
installed, err := RpmInstalled(library.Name)
|
||||
if err != nil {
|
||||
return false, err
|
||||
@@ -307,6 +306,7 @@ func CheckDependencies(logger *Logger) (bool, error) {
|
||||
logger.Green("Library '%s' installed.", library.Name)
|
||||
}
|
||||
default:
|
||||
fmt.Printf("here 1. DistroInfo = %+v\n", distroInfo)
|
||||
return false, fmt.Errorf("unable to check libraries on distribution '%s'. Please ensure that the '%s' equivalent is installed", distroInfo.DistributorID, library.Name)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,6 +108,7 @@ func checkLibraries() (errors bool, err error) {
|
||||
logger.Green("Library '%s' installed.", library.Name)
|
||||
}
|
||||
default:
|
||||
fmt.Printf("here 2. DistroInfo = %+v\n", distroInfo)
|
||||
return false, fmt.Errorf("unable to check libraries on distribution '%s'. Please ensure that the '%s' equivalent is installed", distroInfo.DistributorID, library.Name)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user